Class: SamlIdp::Configurator
- Inherits:
-
Object
- Object
- SamlIdp::Configurator
- Defined in:
- lib/saml_idp/configurator.rb
Instance Attribute Summary collapse
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#x509_certificate ⇒ Object
Returns the value of attribute x509_certificate.
Instance Method Summary collapse
-
#initialize(config_file = nil) ⇒ Configurator
constructor
A new instance of Configurator.
Constructor Details
#initialize(config_file = nil) ⇒ Configurator
Returns a new instance of Configurator.
5 6 7 8 9 10 |
# File 'lib/saml_idp/configurator.rb', line 5 def initialize(config_file = nil) self.x509_certificate = Default::X509_CERTIFICATE self.secret_key = Default::SECRET_KEY self.algorithm = :sha1 instance_eval(File.read(config_file), config_file) if config_file end |
Instance Attribute Details
#algorithm ⇒ Object
Returns the value of attribute algorithm.
3 4 5 |
# File 'lib/saml_idp/configurator.rb', line 3 def algorithm @algorithm end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
3 4 5 |
# File 'lib/saml_idp/configurator.rb', line 3 def secret_key @secret_key end |
#x509_certificate ⇒ Object
Returns the value of attribute x509_certificate.
3 4 5 |
# File 'lib/saml_idp/configurator.rb', line 3 def x509_certificate @x509_certificate end |