module Saml::Config

Public Class Methods

register_store(name, store, options = {}) click to toggle source
# File lib/saml/config.rb, line 38
def register_store(name, store, options = {})
  registered_stores[name] = store
  self.default_store = name if options[:default]
end
ssl_certificate_file=(certificate_file) click to toggle source
# File lib/saml/config.rb, line 53
def ssl_certificate_file=(certificate_file)
  if certificate_file.present?
    self.ssl_certificate = OpenSSL::X509::Certificate.new File.read(certificate_file)
  else
    self.ssl_certificate = nil
  end
end
ssl_private_key_file=(private_key_file) click to toggle source
# File lib/saml/config.rb, line 44
def ssl_private_key_file=(private_key_file)
  if private_key_file.present?
    self.ssl_private_key = OpenSSL::PKey::RSA.new File.read(private_key_file)
  else
    self.ssl_private_key = nil
  end
end

Private Instance Methods

register_store(name, store, options = {}) click to toggle source
# File lib/saml/config.rb, line 38
def register_store(name, store, options = {})
  registered_stores[name] = store
  self.default_store = name if options[:default]
end
ssl_certificate_file=(certificate_file) click to toggle source
# File lib/saml/config.rb, line 53
def ssl_certificate_file=(certificate_file)
  if certificate_file.present?
    self.ssl_certificate = OpenSSL::X509::Certificate.new File.read(certificate_file)
  else
    self.ssl_certificate = nil
  end
end
ssl_private_key_file=(private_key_file) click to toggle source
# File lib/saml/config.rb, line 44
def ssl_private_key_file=(private_key_file)
  if private_key_file.present?
    self.ssl_private_key = OpenSSL::PKey::RSA.new File.read(private_key_file)
  else
    self.ssl_private_key = nil
  end
end