Method: OneLogin::KlRubySaml::Settings#get_sp_key
- Defined in:
- lib/onelogin/kl-ruby-saml/settings.rb
#get_sp_key ⇒ OpenSSL::PKey::RSA
Returns Build the SP private from the settings (previously format it).
136 137 138 139 140 141 |
# File 'lib/onelogin/kl-ruby-saml/settings.rb', line 136 def get_sp_key return nil if private_key.nil? || private_key.empty? formated_private_key = OneLogin::KlRubySaml::Utils.format_private_key(private_key) OpenSSL::PKey::RSA.new(formated_private_key) end |