Neos\Flow\Security\Cryptography\RsaWalletServicePhp::storeKeyPair PHP Méthode

storeKeyPair() private méthode

The SSH fingerprint of the RSA public key will be used as an identifier for consistent key access.
private storeKeyPair ( OpenSslRsaKey $publicKey, OpenSslRsaKey $privateKey, boolean $usedForPasswords ) : string
$publicKey OpenSslRsaKey The public key
$privateKey OpenSslRsaKey The private key
$usedForPasswords boolean TRUE if this keypair should be used to encrypt passwords (then decryption won't be allowed!).
Résultat string The fingerprint which is used as an identifier for storing the key pair
    private function storeKeyPair($publicKey, $privateKey, $usedForPasswords)
    {
        $publicKeyFingerprint = $this->getFingerprintByPublicKey($publicKey->getKeyString());
        $keyPair = [];
        $keyPair['publicKey'] = $publicKey;
        $keyPair['privateKey'] = $privateKey;
        $keyPair['usedForPasswords'] = $usedForPasswords;
        $this->keys[$publicKeyFingerprint] = $keyPair;
        $this->saveKeysOnShutdown = true;
        return $publicKeyFingerprint;
    }