PHP 인터페이스 Jose\DecrypterInterface

파일 보기 프로젝트 열기: spomky-labs/jose 0 사용 예제들

공개 메소드들

메소드 설명
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[]

메소드 상세

createDecrypter() 공개 정적인 메소드

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
리턴 Jose\DecrypterInterface

decryptUsingKey() 공개 메소드

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 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 getSupportedCompressionMethods ( ) : string[]
리턴 string[]

getSupportedContentEncryptionAlgorithms() 공개 메소드

public getSupportedContentEncryptionAlgorithms ( ) : string[]
리턴 string[]

getSupportedKeyEncryptionAlgorithms() 공개 메소드

public getSupportedKeyEncryptionAlgorithms ( ) : string[]
리턴 string[]