PHP 인터페이스 Jose\Algorithm\KeyEncryption\KeyEncryptionInterface

상속: extends Jose\Algorithm\KeyEncryptionAlgorithmInterface
파일 보기 프로젝트 열기: spomky-labs/jose 0 사용 예제들

공개 메소드들

메소드 설명
decryptKey ( Jose\Object\JWKInterface $key, string $encrypted_cek, array $header ) : string Decrypt de CEK.
encryptKey ( Jose\Object\JWKInterface $key, string $cek, array $complete_headers, array &$additional_headers ) : string Encrypt the CEK.

메소드 상세

decryptKey() 공개 메소드

Decrypt de CEK.
public decryptKey ( Jose\Object\JWKInterface $key, string $encrypted_cek, array $header ) : string
$key Jose\Object\JWKInterface The key used to wrap the CEK
$encrypted_cek string The CEK to decrypt
$header array The complete header of the JWT
리턴 string The decrypted CEK

encryptKey() 공개 메소드

Encrypt the CEK.
public encryptKey ( Jose\Object\JWKInterface $key, string $cek, array $complete_headers, array &$additional_headers ) : string
$key Jose\Object\JWKInterface The key used to wrap the CEK
$cek string The CEK to encrypt
$complete_headers array The complete header of the JWT
$additional_headers array Additional headers
리턴 string The encrypted CEK