PHP Interface Jose\DecrypterInterface

Datei anzeigen Open project: spomky-labs/jose Interface Usage Examples

Public Methods

Method Description
createDecrypter ( array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF', 'ZLIB', 'GZ'] ) : Jose\DecrypterInterface
decryptUsingKey ( Jose\Object\JWEInterface &$input, Jose\Object\JWKInterface $jwk, null | integer &$recipient_index = null )
decryptUsingKeySet ( Jose\Object\JWEInterface &$input, Jose\Object\JWKSetInterface $jwk_set, null | integer &$recipient_index = null )
getSupportedCompressionMethods ( ) : string[]
getSupportedContentEncryptionAlgorithms ( ) : string[]
getSupportedKeyEncryptionAlgorithms ( ) : string[]

Method Details

createDecrypter() public static method

public static createDecrypter ( array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF', 'ZLIB', 'GZ'] ) : Jose\DecrypterInterface
$key_encryption_algorithms array
$content_encryption_algorithms array
$compression_methods array
return Jose\DecrypterInterface

decryptUsingKey() public method

public decryptUsingKey ( Jose\Object\JWEInterface &$input, Jose\Object\JWKInterface $jwk, null | integer &$recipient_index = null )
$input Jose\Object\JWEInterface A JWE object to decrypt
$jwk Jose\Object\JWKInterface The key used to decrypt the input
$recipient_index null | integer If the JWE has been decrypted, an integer that represents the ID of the recipient is set

decryptUsingKeySet() public method

public decryptUsingKeySet ( Jose\Object\JWEInterface &$input, Jose\Object\JWKSetInterface $jwk_set, null | integer &$recipient_index = null )
$input Jose\Object\JWEInterface A JWE object to decrypt
$jwk_set Jose\Object\JWKSetInterface The key set used to decrypt the input
$recipient_index null | integer If the JWE has been decrypted, an integer that represents the ID of the recipient is set

getSupportedCompressionMethods() public method

public getSupportedCompressionMethods ( ) : string[]
return string[]

getSupportedContentEncryptionAlgorithms() public method

public getSupportedContentEncryptionAlgorithms ( ) : string[]
return string[]

getSupportedKeyEncryptionAlgorithms() public method

public getSupportedKeyEncryptionAlgorithms ( ) : string[]
return string[]