\CryptoManana\Core\Traits\ContainersAsymmetricEncryptionInjectableTrait

Trait AsymmetricEncryptionInjectableTrait - Reusable implementation of `AsymmetricEncryptionInjectableInterface`.

Summary

Methods
Properties
Constants
setAsymmetricCipher()
getAsymmetricCipher()
$$asymmetricCipherSource
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$$asymmetricCipherSource

$$asymmetricCipherSource : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null

The message asymmetric encryption service.

Type

\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null

Methods

setAsymmetricCipher()

setAsymmetricCipher(\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface  $cipher) : $this

Setter for the message asymmetric encryption service.

Parameters

\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface $cipher

The message asymmetric encryption service.

Returns

$this —

The container object.

getAsymmetricCipher()

getAsymmetricCipher() : \CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null

Getter for the message asymmetric encryption service.

Returns

\CryptoManana\Core\Abstractions\MessageEncryption\AbstractAsymmetricEncryptionAlgorithm|\CryptoManana\Core\Interfaces\MessageEncryption\DataEncryptionInterface|null —

The currently injected message encryption service or null.