PHP Interface Jose\EncrypterInterface

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

Public Methods

Method Description
createEncrypter ( array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF', 'ZLIB', 'GZ'] ) : Jose\EncrypterInterface
encrypt ( Jose\Object\JWEInterface &$jwe )
getSupportedCompressionMethods ( ) : string[]
getSupportedContentEncryptionAlgorithms ( ) : string[]
getSupportedKeyEncryptionAlgorithms ( ) : string[]

Method Details

createEncrypter() public static method

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

encrypt() public method

public encrypt ( Jose\Object\JWEInterface &$jwe )
$jwe Jose\Object\JWEInterface

getSupportedCompressionMethods() public method

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

getSupportedContentEncryptionAlgorithms() public method

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

getSupportedKeyEncryptionAlgorithms() public method

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