Sha256: 23263cb74c85cf61ec62608c7f5b5cd502c487196955cba23b9214873aba92b9

Contents?: true

Size: 397 Bytes

Versions: 4

Compression:

Stored size: 397 Bytes

Contents

module Saml
  module Kit
    class KeyPair
      attr_reader :certificate, :private_key, :use

      def initialize(certificate, private_key, password, use)
        @use = use
        @certificate = Saml::Kit::Certificate.new(certificate, use: use)
        @private_key = OpenSSL::PKey::RSA.new(private_key, password)
      end

      def for?(use)
        @use == use
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
saml-kit-0.2.11 lib/saml/kit/key_pair.rb
saml-kit-0.2.10 lib/saml/kit/key_pair.rb
saml-kit-0.2.9 lib/saml/kit/key_pair.rb
saml-kit-0.2.8 lib/saml/kit/key_pair.rb