PHP 인터페이스 Jose\LoaderInterface

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

공개 메소드들

메소드 설명
load ( string $input ) : Jose\Object\JWSInterface | Jose\Object\JWEInterface Load data and try to return a JWSInterface object, a JWEInterface object or a list of these objects.
loadAndDecryptUsingKey ( string $input, Jose\Object\JWKInterface $jwk, array $allowed_key_encryption_algorithms, array $allowed_content_encryption_algorithms, null | integer &$recipient_index = null ) : Jose\Object\JWSInterface | Jose\Object\JWEInterface
loadAndDecryptUsingKeySet ( string $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_key_encryption_algorithms, array $allowed_content_encryption_algorithms, null | integer &$recipient_index = null ) : Jose\Object\JWEInterface
loadAndVerifySignatureUsingKey ( string $input, Jose\Object\JWKInterface $jwk, array $allowed_algorithms, null | integer &$signature_index = null ) : Jose\Object\JWSInterface
loadAndVerifySignatureUsingKeyAndDetachedPayload ( string $input, Jose\Object\JWKInterface $jwk, array $allowed_algorithms, string $detached_payload, null | integer &$signature_index = null ) : Jose\Object\JWSInterface
loadAndVerifySignatureUsingKeySet ( string $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, null | integer &$signature_index = null ) : Jose\Object\JWSInterface
loadAndVerifySignatureUsingKeySetAndDetachedPayload ( string $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, string $detached_payload, null | integer &$signature_index = null ) : Jose\Object\JWSInterface

메소드 상세

load() 공개 메소드

If the result is a JWE (list), nothing is decrypted and method decrypt must be executed If the result is a JWS (list), no signature is verified and method verifySignature must be executed.
public load ( string $input ) : Jose\Object\JWSInterface | Jose\Object\JWEInterface
$input string A string that represents a JSON Web Token message
리턴 Jose\Object\JWSInterface | Jose\Object\JWEInterface If the data has been loaded.

loadAndDecryptUsingKey() 공개 메소드

public loadAndDecryptUsingKey ( string $input, Jose\Object\JWKInterface $jwk, array $allowed_key_encryption_algorithms, array $allowed_content_encryption_algorithms, null | integer &$recipient_index = null ) : Jose\Object\JWSInterface | Jose\Object\JWEInterface
$input string
$jwk Jose\Object\JWKInterface
$allowed_key_encryption_algorithms array
$allowed_content_encryption_algorithms array
$recipient_index null | integer
리턴 Jose\Object\JWSInterface | Jose\Object\JWEInterface If the data has been loaded.

loadAndDecryptUsingKeySet() 공개 메소드

public loadAndDecryptUsingKeySet ( string $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_key_encryption_algorithms, array $allowed_content_encryption_algorithms, null | integer &$recipient_index = null ) : Jose\Object\JWEInterface
$input string
$jwk_set Jose\Object\JWKSetInterface
$allowed_key_encryption_algorithms array
$allowed_content_encryption_algorithms array
$recipient_index null | integer
리턴 Jose\Object\JWEInterface If the data has been loaded.

loadAndVerifySignatureUsingKey() 공개 메소드

public loadAndVerifySignatureUsingKey ( string $input, Jose\Object\JWKInterface $jwk, array $allowed_algorithms, null | integer &$signature_index = null ) : Jose\Object\JWSInterface
$input string
$jwk Jose\Object\JWKInterface
$allowed_algorithms array
$signature_index null | integer
리턴 Jose\Object\JWSInterface If the data has been loaded.

loadAndVerifySignatureUsingKeyAndDetachedPayload() 공개 메소드

public loadAndVerifySignatureUsingKeyAndDetachedPayload ( string $input, Jose\Object\JWKInterface $jwk, array $allowed_algorithms, string $detached_payload, null | integer &$signature_index = null ) : Jose\Object\JWSInterface
$input string
$jwk Jose\Object\JWKInterface
$allowed_algorithms array
$detached_payload string
$signature_index null | integer
리턴 Jose\Object\JWSInterface If the data has been loaded.

loadAndVerifySignatureUsingKeySet() 공개 메소드

public loadAndVerifySignatureUsingKeySet ( string $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, null | integer &$signature_index = null ) : Jose\Object\JWSInterface
$input string
$jwk_set Jose\Object\JWKSetInterface
$allowed_algorithms array
$signature_index null | integer
리턴 Jose\Object\JWSInterface If the data has been loaded.

loadAndVerifySignatureUsingKeySetAndDetachedPayload() 공개 메소드

public loadAndVerifySignatureUsingKeySetAndDetachedPayload ( string $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, string $detached_payload, null | integer &$signature_index = null ) : Jose\Object\JWSInterface
$input string
$jwk_set Jose\Object\JWKSetInterface
$allowed_algorithms array
$detached_payload string
$signature_index null | integer
리턴 Jose\Object\JWSInterface If the data has been loaded.