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;
static getFileContents($file)
convertPrivateKeyToRsaKey(PrivateKey $privateKey)
loadDecryptionKeys(DecryptionProvider $identityProvider, DecryptionProvider $serviceProvider)
Configuration of a private key.
getPrivateKey($name, $required=false)
Simple Array implementation of Collection.
Create styles array
The data for the language used.
loadPrivateKey(PrivateKeyConfiguration $key)
Loads a private key based on the configuration given.
static create($keyContents, $passphrase=null)