Sha256: 823abbd5000dcd10a83894a5f5d1fe65253c89367bc5757a47820024fede02a7

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

module Saml
  module Kit
    class KeyPair # :nodoc:
      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

2 entries across 2 versions & 1 rubygems

Version Path
saml-kit-0.2.13 lib/saml/kit/key_pair.rb
saml-kit-0.2.12 lib/saml/kit/key_pair.rb