PHP 클래스 Jose\Decrypter

상속: implements jose\DecrypterInterface, use trait Jose\Behaviour\HasKeyChecker, use trait Jose\Behaviour\HasJWAManager, use trait Jose\Behaviour\HasCompressionManager, use trait Jose\Behaviour\CommonCipheringMethods
파일 보기 프로젝트 열기: spomky-labs/jose 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods ) Decrypter constructor.
createDecrypter ( array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF', 'ZLIB', 'GZ'] )
decryptUsingKey ( Jose\Object\JWEInterface &$jwe, Jose\Object\JWKInterface $jwk, &$recipient_index = null )
decryptUsingKeySet ( Jose\Object\JWEInterface &$jwe, Jose\Object\JWKSetInterface $jwk_set, &$recipient_index = null )

비공개 메소드들

메소드 설명
checkCompleteHeader ( array $complete_headers )
checkJWKSet ( Jose\Object\JWKSetInterface $jwk_set )
checkPayload ( Jose\Object\JWEInterface $jwe )
checkRecipients ( Jose\Object\JWEInterface $jwe )
decompressIfNeeded ( string &$payload, array $complete_headers )
decryptCEK ( Jose\Algorithm\JWAInterface $key_encryption_algorithm, Jose\Algorithm\ContentEncryptionAlgorithmInterface $content_encryption_algorithm, Jose\Object\JWKInterface $key, Jose\Object\RecipientInterface $recipient, array $complete_headers ) : null | string
decryptPayload ( Jose\Object\JWEInterface &$jwe, string $cek, Jose\Algorithm\ContentEncryptionAlgorithmInterface $content_encryption_algorithm, array $complete_headers ) : boolean
decryptRecipientKey ( Jose\Object\JWEInterface &$jwe, Jose\Object\JWKSetInterface $jwk_set, integer $i ) : integer | null
getCompressionMethod ( string $method ) : Jose\Compression\CompressionInterface
getContentEncryptionAlgorithm ( array $complete_headers ) : Jose\Algorithm\ContentEncryptionAlgorithmInterface
getKeyEncryptionAlgorithm ( array $complete_headers ) : Jose\Algorithm\KeyEncryptionAlgorithmInterface

메소드 상세

__construct() 공개 메소드

Decrypter constructor.
public __construct ( array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods )
$key_encryption_algorithms array
$content_encryption_algorithms array
$compression_methods array

createDecrypter() 공개 정적인 메소드

public static createDecrypter ( array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF', 'ZLIB', 'GZ'] )
$key_encryption_algorithms array
$content_encryption_algorithms array
$compression_methods array

decryptUsingKey() 공개 메소드

public decryptUsingKey ( Jose\Object\JWEInterface &$jwe, Jose\Object\JWKInterface $jwk, &$recipient_index = null )
$jwe Jose\Object\JWEInterface
$jwk Jose\Object\JWKInterface

decryptUsingKeySet() 공개 메소드

public decryptUsingKeySet ( Jose\Object\JWEInterface &$jwe, Jose\Object\JWKSetInterface $jwk_set, &$recipient_index = null )
$jwe Jose\Object\JWEInterface
$jwk_set Jose\Object\JWKSetInterface