Sha256: 25344417a953cec975297c3720e496079145da70842eb7444d8642f14aad0e94

Contents?: true

Size: 550 Bytes

Versions: 4

Compression:

Stored size: 550 Bytes

Contents


module Ccrypto
  class PKCS7Config
    include AlgoConfig
    include TR::CondUtils

    #attr_accessor :keybundle

    attr_accessor :private_key, :public_key
    # for signing operation
    attr_accessor :signerCert
    # for decryption operation
    attr_accessor :certForDecryption

    def add_recipient_cert(cert)
      recpCerts << cert if not_empty?(cert)
    end

    def recipient_certs
      recpCerts
    end

    protected
    def recpCerts
      if @recpCerts.nil?
        @recpCerts = []
      end
      @recpCerts
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ccrypto-0.2.0 lib/ccrypto/configs/pkcs7_config.rb
ccrypto-0.1.3 lib/ccrypto/configs/pkcs7_config.rb
ccrypto-0.1.2 lib/ccrypto/configs/pkcs7_config.rb
ccrypto-0.1.0 lib/ccrypto/configs/pkcs7_config.rb