41        if ($senderSharedKey) {
 
   43            $key->loadKey($senderSharedKey);
 
   44            $decryptionKeys->add(
$key);
 
   46            return $decryptionKeys;
 
   49        $newPrivateKey = $serviceProvider->
getPrivateKey(PrivateKeyConfiguration::NAME_NEW);
 
   50        if ($newPrivateKey instanceof PrivateKeyConfiguration) {
 
   55        $privateKey = $serviceProvider->
getPrivateKey(PrivateKeyConfiguration::NAME_DEFAULT, 
true);
 
   59        return $decryptionKeys;
 
   73            $key->passphrase = $passphrase;
 
An exception for terminatinating execution or to throw for unit testing.
loadPrivateKey(PrivateKeyConfiguration $key)
Loads a private key based on the configuration given.
loadDecryptionKeys(DecryptionProvider $identityProvider, DecryptionProvider $serviceProvider)
convertPrivateKeyToRsaKey(PrivateKey $privateKey)
static create($keyContents, $passphrase=null)
Configuration of a private key.
Simple Array implementation of Collection.
static getFileContents($file)
getPrivateKey($name, $required=false)