$randomnessSource
$randomnessSource : \CryptoManana\Core\Abstractions\Randomness\AbstractRandomness|\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null
The pseudo-random generator service property storage.
Class PublicKeyAuthentication - The asymmetric/public key authentication protocol object.
$randomnessSource : \CryptoManana\Core\Abstractions\Randomness\AbstractRandomness|\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null
The pseudo-random generator service property storage.
$asymmetricCipherSource : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null
The message asymmetric encryption algorithm service property storage.
setRandomGenerator(\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator $generator) : $this
Setter for the pseudo-random generator service.
\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator | $generator | The pseudo-random generator service. |
The container object.
getRandomGenerator() : \CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null
Getter for the pseudo-random generator service.
The currently injected pseudo-random generator service.
setAsymmetricCipher(\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface $cipher) : $this
Setter for the message asymmetric encryption service.
\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface | $cipher | The message asymmetric encryption service. |
The container object.
getAsymmetricCipher() : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null
Getter for the message asymmetric encryption service.
The currently injected message encryption service or null.
identifyEntity(string $correctIdentification, string $suppliedIdentification) : boolean
Verify the identity of a user or a client entity.
string | $correctIdentification | The correct identification information. |
string | $suppliedIdentification | The supplied identification information. |
Validation errors.
The identity verification result.
authenticateEntity(string $correctPassphrase, string $suppliedPassphrase) : boolean
Authenticate a user or a client entity.
string | $correctPassphrase | The correct passphrase information. |
string | $suppliedPassphrase | The supplied passphrase information. |
Validation errors.
The identity authentication result.
generateAuthenticationToken(integer $length = 64) : \CryptoManana\DataStructures\AuthenticationToken
Generate a secure token and create an encrypt representation.
integer | $length | The desired output string length in bytes (default => 64). |
Validation errors.
The authentication token data structure object.
extractAuthenticationToken(string $cipherToken) : string
Extracts the token from the cipher data via a predefined configuration.
string | $cipherToken | The encrypted token string. |
Validation errors.
The decrypted authentication token.
__construct(\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm $cipher = null)
Container constructor.
\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm | $cipher | The message encryption service. |
Initialization validation.