Class: Ccrypto::PKCS7Config

Inherits:
Object
  • Object
show all
Includes:
AlgoConfig, TR::CondUtils
Defined in:
lib/ccrypto/configs/pkcs7_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AlgoConfig

include

Instance Attribute Details

#certForDecryptionObject

for decryption operation



14
15
16
# File 'lib/ccrypto/configs/pkcs7_config.rb', line 14

def certForDecryption
  @certForDecryption
end

#private_keyObject

attr_accessor :keybundle



10
11
12
# File 'lib/ccrypto/configs/pkcs7_config.rb', line 10

def private_key
  @private_key
end

#public_keyObject

attr_accessor :keybundle



10
11
12
# File 'lib/ccrypto/configs/pkcs7_config.rb', line 10

def public_key
  @public_key
end

#signerCertObject

for signing operation



12
13
14
# File 'lib/ccrypto/configs/pkcs7_config.rb', line 12

def signerCert
  @signerCert
end

Instance Method Details

#add_recipient_cert(cert) ⇒ Object



16
17
18
# File 'lib/ccrypto/configs/pkcs7_config.rb', line 16

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

#recipient_certsObject



20
21
22
# File 'lib/ccrypto/configs/pkcs7_config.rb', line 20

def recipient_certs
  recpCerts
end