$randomnessSource
$randomnessSource : \CryptoManana\Core\Abstractions\Randomness\AbstractRandomness|\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null
The pseudo-random generator service property storage.
Class SymmetricKeyAuthentication - The symmetric key authentication protocol object.
$randomnessSource : \CryptoManana\Core\Abstractions\Randomness\AbstractRandomness|\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null
The pseudo-random generator service property storage.
$symmetricCipherSource : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null
The message symmetric 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.
setSymmetricCipher(\CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface $cipher) : $this
Setter for the message symmetric encryption service.
\CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface | $cipher | The message symmetric encryption service. |
The container object.
getSymmetricCipher() : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null
Getter for the message symmetric 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\AbstractBlockCipherAlgorithm $cipher = null)
Container constructor.
\CryptoManana\Core\Abstractions\MessageEncryption\AbstractBlockCipherAlgorithm | $cipher | The message encryption service. |
Initialization validation.