PHP Class Jose\Loader

JWS object can also be verified.
Inheritance: implements jose\LoaderInterface
Mostrar archivo Open project: spomky-labs/jose Class Usage Examples

Public Methods

Method Description
load ( $input )
loadAndDecryptUsingKey ( $input, Jose\Object\JWKInterface $jwk, array $allowed_key_encryption_algorithms, array $allowed_content_encryption_algorithms, &$recipient_index = null )
loadAndDecryptUsingKeySet ( $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_key_encryption_algorithms, array $allowed_content_encryption_algorithms, &$recipient_index = null )
loadAndVerifySignatureUsingKey ( $input, Jose\Object\JWKInterface $jwk, array $allowed_algorithms, &$signature_index = null )
loadAndVerifySignatureUsingKeyAndDetachedPayload ( $input, Jose\Object\JWKInterface $jwk, array $allowed_algorithms, $detached_payload, &$signature_index = null )
loadAndVerifySignatureUsingKeySet ( $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, &$signature_index = null )
loadAndVerifySignatureUsingKeySetAndDetachedPayload ( $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, $detached_payload, &$signature_index = null )

Private Methods

Method Description
convert ( string $input ) : array
fromCompactSerializationRecipientToSerialization ( array $parts ) : array
fromCompactSerializationSignatureToSerialization ( array $parts ) : array
fromCompactSerializationToSerialization ( string $input ) : array
fromFlattenedSerializationRecipientToSerialization ( $input ) : array
fromFlattenedSerializationSignatureToSerialization ( $input ) : array
loadAndDecrypt ( 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
loadAndVerifySignature ( string $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, string | null $detached_payload = null, null | integer &$signature_index = null ) : Jose\Object\JWSInterface

Method Details

load() public method

public load ( $input )

loadAndDecryptUsingKey() public method

public loadAndDecryptUsingKey ( $input, Jose\Object\JWKInterface $jwk, array $allowed_key_encryption_algorithms, array $allowed_content_encryption_algorithms, &$recipient_index = null )
$jwk Jose\Object\JWKInterface
$allowed_key_encryption_algorithms array
$allowed_content_encryption_algorithms array

loadAndDecryptUsingKeySet() public method

public loadAndDecryptUsingKeySet ( $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_key_encryption_algorithms, array $allowed_content_encryption_algorithms, &$recipient_index = null )
$jwk_set Jose\Object\JWKSetInterface
$allowed_key_encryption_algorithms array
$allowed_content_encryption_algorithms array

loadAndVerifySignatureUsingKey() public method

public loadAndVerifySignatureUsingKey ( $input, Jose\Object\JWKInterface $jwk, array $allowed_algorithms, &$signature_index = null )
$jwk Jose\Object\JWKInterface
$allowed_algorithms array

loadAndVerifySignatureUsingKeyAndDetachedPayload() public method

public loadAndVerifySignatureUsingKeyAndDetachedPayload ( $input, Jose\Object\JWKInterface $jwk, array $allowed_algorithms, $detached_payload, &$signature_index = null )
$jwk Jose\Object\JWKInterface
$allowed_algorithms array

loadAndVerifySignatureUsingKeySet() public method

public loadAndVerifySignatureUsingKeySet ( $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, &$signature_index = null )
$jwk_set Jose\Object\JWKSetInterface
$allowed_algorithms array

loadAndVerifySignatureUsingKeySetAndDetachedPayload() public method

public loadAndVerifySignatureUsingKeySetAndDetachedPayload ( $input, Jose\Object\JWKSetInterface $jwk_set, array $allowed_algorithms, $detached_payload, &$signature_index = null )
$jwk_set Jose\Object\JWKSetInterface
$allowed_algorithms array