Class: SamlIdp::Configurator
- Inherits:
-
Object
- Object
- SamlIdp::Configurator
- Defined in:
- lib/saml_idp/configurator.rb
Defined Under Namespace
Classes: TechnicalContact
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
-
#attribute_service_location ⇒ Object
Returns the value of attribute attribute_service_location.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#base_saml_location ⇒ Object
Returns the value of attribute base_saml_location.
-
#entity_id ⇒ Object
Returns the value of attribute entity_id.
-
#organization_name ⇒ Object
Returns the value of attribute organization_name.
-
#organization_url ⇒ Object
Returns the value of attribute organization_url.
-
#password ⇒ Object
Returns the value of attribute password.
-
#reference_id_generator ⇒ Object
Returns the value of attribute reference_id_generator.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#service_provider ⇒ Object
Returns the value of attribute service_provider.
-
#single_logout_service_post_location ⇒ Object
Returns the value of attribute single_logout_service_post_location.
-
#single_service_post_location ⇒ Object
Returns the value of attribute single_service_post_location.
-
#x509_certificate ⇒ Object
Returns the value of attribute x509_certificate.
Instance Method Summary collapse
-
#initialize ⇒ Configurator
constructor
A new instance of Configurator.
-
#name_id ⇒ Object
formats getter.
- #technical_contact ⇒ Object
Constructor Details
#initialize ⇒ Configurator
Returns a new instance of Configurator.
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/saml_idp/configurator.rb', line 20 def initialize self.x509_certificate = Default::X509_CERTIFICATE self.secret_key = Default::SECRET_KEY self.algorithm = :sha1 self.reference_id_generator = ->() { UUID.generate } self.service_provider = OpenStruct.new self.service_provider.finder = ->(_) { Default::SERVICE_PROVIDER } self.service_provider. = ->(id, settings) { } self.service_provider. = ->(id, service_provider) { } self.attributes = {} end |
Instance Attribute Details
#algorithm ⇒ Object
Returns the value of attribute algorithm.
8 9 10 |
# File 'lib/saml_idp/configurator.rb', line 8 def algorithm @algorithm end |
#attribute_service_location ⇒ Object
Returns the value of attribute attribute_service_location.
14 15 16 |
# File 'lib/saml_idp/configurator.rb', line 14 def attribute_service_location @attribute_service_location end |
#attributes ⇒ Object
Returns the value of attribute attributes.
17 18 19 |
# File 'lib/saml_idp/configurator.rb', line 17 def attributes @attributes end |
#base_saml_location ⇒ Object
Returns the value of attribute base_saml_location.
11 12 13 |
# File 'lib/saml_idp/configurator.rb', line 11 def base_saml_location @base_saml_location end |
#entity_id ⇒ Object
Returns the value of attribute entity_id.
12 13 14 |
# File 'lib/saml_idp/configurator.rb', line 12 def entity_id @entity_id end |
#organization_name ⇒ Object
Returns the value of attribute organization_name.
9 10 11 |
# File 'lib/saml_idp/configurator.rb', line 9 def organization_name @organization_name end |
#organization_url ⇒ Object
Returns the value of attribute organization_url.
10 11 12 |
# File 'lib/saml_idp/configurator.rb', line 10 def organization_url @organization_url end |
#password ⇒ Object
Returns the value of attribute password.
7 8 9 |
# File 'lib/saml_idp/configurator.rb', line 7 def password @password end |
#reference_id_generator ⇒ Object
Returns the value of attribute reference_id_generator.
13 14 15 |
# File 'lib/saml_idp/configurator.rb', line 13 def reference_id_generator @reference_id_generator end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
6 7 8 |
# File 'lib/saml_idp/configurator.rb', line 6 def secret_key @secret_key end |
#service_provider ⇒ Object
Returns the value of attribute service_provider.
18 19 20 |
# File 'lib/saml_idp/configurator.rb', line 18 def service_provider @service_provider end |
#single_logout_service_post_location ⇒ Object
Returns the value of attribute single_logout_service_post_location.
16 17 18 |
# File 'lib/saml_idp/configurator.rb', line 16 def single_logout_service_post_location @single_logout_service_post_location end |
#single_service_post_location ⇒ Object
Returns the value of attribute single_service_post_location.
15 16 17 |
# File 'lib/saml_idp/configurator.rb', line 15 def single_service_post_location @single_service_post_location end |
#x509_certificate ⇒ Object
Returns the value of attribute x509_certificate.
5 6 7 |
# File 'lib/saml_idp/configurator.rb', line 5 def x509_certificate @x509_certificate end |
Instance Method Details
#name_id ⇒ Object
formats getter
34 35 36 |
# File 'lib/saml_idp/configurator.rb', line 34 def name_id @name_id ||= OpenStruct.new end |
#technical_contact ⇒ Object
38 39 40 |
# File 'lib/saml_idp/configurator.rb', line 38 def technical_contact @technical_contact ||= TechnicalContact.new end |