PHP Class Neos\Flow\Tests\Unit\Security\Cryptography\RsaWalletServicePhpTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$keyPairUuid string
$rsaWalletService Neos\Flow\Security\Cryptography\RsaWalletServicePhp

Public Methods

Method Description
checkRSAEncryptedPasswordReturnsFalseForAnIncorrectPassword ( )
checkRSAEncryptedPasswordReturnsTrueForACorrectPassword ( )
decryptingWithAKeypairUUIDMarkedForPasswordUsageThrowsAnException ( )
encryptingAndDecryptingBasicallyWorks ( )
getFingerprintByPublicKeyCalculatesCorrectFingerprint ( )
registerPublicKeyFromStringUsesFingerprintAsUuid ( )
setUp ( ) : void Set up this testcase.
shutdownDoesNotSavesKeysToKeystoreFileIfKeysWereNotModified ( )
shutdownSavesKeysToKeystoreFileIfKeysWereModified ( )
signAndVerifySignatureBasicallyWorks ( )

Method Details

checkRSAEncryptedPasswordReturnsFalseForAnIncorrectPassword() public method

checkRSAEncryptedPasswordReturnsTrueForACorrectPassword() public method

decryptingWithAKeypairUUIDMarkedForPasswordUsageThrowsAnException() public method

encryptingAndDecryptingBasicallyWorks() public method

getFingerprintByPublicKeyCalculatesCorrectFingerprint() public method

registerPublicKeyFromStringUsesFingerprintAsUuid() public method

setUp() public method

In this case this only marks the test to be skipped if openssl extension is not installed
public setUp ( ) : void
return void

shutdownDoesNotSavesKeysToKeystoreFileIfKeysWereNotModified() public method

shutdownSavesKeysToKeystoreFileIfKeysWereModified() public method

signAndVerifySignatureBasicallyWorks() public method

Property Details

$keyPairUuid protected property

protected string $keyPairUuid
return string

$rsaWalletService protected property

protected RsaWalletServicePhp,Neos\Flow\Security\Cryptography $rsaWalletService
return Neos\Flow\Security\Cryptography\RsaWalletServicePhp