PHP Trait Jose\Behaviour\EncrypterTrait

Datei anzeigen Open project: spomky-labs/jose

Protected Methods

Method Description
checkKeyAlgorithm ( Jose\Object\JWKInterface $key, string $algorithm )
checkKeyUsage ( Jose\Object\JWKInterface $key, string $usage ) : boolean
getCompressionManager ( ) : Jose\Compression\CompressionManagerInterface
getJWAManager ( ) : Jose\Algorithm\JWAManagerInterface

Private Methods

Method Description
areKeyManagementModesCompatible ( string $current, string $new ) : boolean
checkKeys ( Jose\Algorithm\KeyEncryptionAlgorithmInterface $key_encryption_algorithm, Jose\Algorithm\ContentEncryptionAlgorithmInterface $content_encryption_algorithm, Jose\Object\JWKInterface $recipient_key )
createCEK ( integer $size ) : string
createIV ( integer $size ) : string
determineCEK ( Jose\Object\JWEInterface $jwe, Jose\Algorithm\ContentEncryptionAlgorithmInterface $content_encryption_algorithm, string $key_management_mode, array &$additional_headers ) : string
findKeyEncryptionAlgorithm ( array $complete_headers ) : Jose\Algorithm\KeyEncryptionAlgorithmInterface
getCompressionMethod ( Jose\Object\JWEInterface $jwe ) : Jose\Compression\CompressionInterface | null
getContentEncryptionAlgorithm ( Jose\Object\JWEInterface $jwe ) : Jose\Algorithm\ContentEncryptionAlgorithmInterface
getKeyManagementMode ( Jose\Object\JWEInterface $jwe ) : string

Method Details

checkKeyAlgorithm() abstract protected method

abstract protected checkKeyAlgorithm ( Jose\Object\JWKInterface $key, string $algorithm )
$key Jose\Object\JWKInterface
$algorithm string

checkKeyUsage() abstract protected method

abstract protected checkKeyUsage ( Jose\Object\JWKInterface $key, string $usage ) : boolean
$key Jose\Object\JWKInterface
$usage string
return boolean

getCompressionManager() abstract protected method

abstract protected getCompressionManager ( ) : Jose\Compression\CompressionManagerInterface
return Jose\Compression\CompressionManagerInterface

getJWAManager() abstract protected method

abstract protected getJWAManager ( ) : Jose\Algorithm\JWAManagerInterface
return Jose\Algorithm\JWAManagerInterface