Sha256: e816510cab333b8ad51b8df3c636aaaab4d8eaed8c86071af9778a56a8faa9c9

Contents?: true

Size: 830 Bytes

Versions: 4

Compression:

Stored size: 830 Bytes

Contents

module Onelogin::Saml
  class Settings
    attr_accessor :assertion_consumer_service_url, :issuer, :sp_name_qualifier
    attr_accessor :idp_sso_target_url, :idp_ssl_target_url, :idp_cert_fingerprint, :name_identifier_format

    def private_key=(private_key_path)
      @private_key =  OpenSSL::PKey::RSA.new(File.read(private_key_path))
    end

    def private_key
      @private_key
    end

    def idp_public_cert=(idp_public_cert_path)
      @idp_public_cert = OpenSSL::X509::Certificate.new(File.read(idp_public_cert_path))
    end

    def idp_public_cert
      @idp_public_cert
    end

#    def private_key_logout_sign=(private_key_path)
#      @private_key_logout_sign = OpenSSL::PKey::RSA.new(File.read(private_key_path))
#    end
#
#    def private_key_logout_sign
#      @private_key_logout_sign
#    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-saml-for-portal-0.3.6 lib/onelogin/saml/settings.rb
ruby-saml-for-portal-0.3.5 lib/onelogin/saml/settings.rb
ruby-saml-for-portal-0.3.4 lib/onelogin/saml/settings.rb
ruby-saml-for-portal-0.3.3 lib/onelogin/saml/settings.rb