/** * Contructs a private key key store entry. * * @param Crypt_KeyStore_PrivateKey $privKey private key * @param Crypt_KeyStore_Certificate $cert public key * @param array<Crypt_KeyStore_Certificate> $chain array of certificates */ public function __construct($privKey, $cert, $chain = array()) { parent::__construct(new DateTime('now', new DateTimeZone('UTC'))); $this->_privKey = $privKey; $this->_cert = $cert; $this->_chain = $chain; }
/** * Constructs a secret key key store entry with the secret key. * * @param Crypt_KeyStore_SecretKey $secretKey the symmetric secret key to * store with entry */ public function __construct($secretKey) { parent::__construct(new DateTime('now', new DateTimeZone('UTC'))); $this->_secretKey = $secretKey; }
/** * Constructs a trusted certificate key store entry with the trusted * certificate. * * @param Crypt_KeyStore_Certificate $trustedCert the trusted certificate * stored with entry */ public function __construct($trustedCert) { parent::__construct(new DateTime('now', new DateTimeZone('UTC'))); $this->_trustedCert = $trustedCert; }