Class: SamlIdp::Configurator

Inherits:
Object
  • Object
show all
Defined in:
lib/saml_idp/configurator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#algorithmObject

Returns the value of attribute algorithm.



3
4
5
# File 'lib/saml_idp/configurator.rb', line 3

def algorithm
  @algorithm
end

#secret_keyObject

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_certificateObject

Returns the value of attribute x509_certificate.



3
4
5
# File 'lib/saml_idp/configurator.rb', line 3

def x509_certificate
  @x509_certificate
end