PHP Class Jose\JWTCreator

Inheritance: implements jose\JWTCreatorInterface
Show file Open project: spomky-labs/jose Class Usage Examples

Public Methods

Method Description
__construct ( jose\SignerInterface $signer ) JWTCreator constructor.
enableEncryptionSupport ( jose\EncrypterInterface $encrypter )
encrypt ( $payload, array $encryption_protected_headers, Jose\Object\JWKInterface $encryption_key )
getSupportedCompressionMethods ( )
getSupportedContentEncryptionAlgorithms ( )
getSupportedKeyEncryptionAlgorithms ( )
getSupportedSignatureAlgorithms ( )
isEncryptionSupportEnabled ( ) : boolean
sign ( $payload, array $signature_protected_headers, Jose\Object\JWKInterface $signature_key )
signAndEncrypt ( $payload, array $signature_protected_headers, Jose\Object\JWKInterface $signature_key, array $encryption_protected_headers, Jose\Object\JWKInterface $encryption_key )

Method Details

__construct() public method

JWTCreator constructor.
public __construct ( jose\SignerInterface $signer )
$signer jose\SignerInterface

enableEncryptionSupport() public method

public enableEncryptionSupport ( jose\EncrypterInterface $encrypter )
$encrypter jose\EncrypterInterface

encrypt() public method

public encrypt ( $payload, array $encryption_protected_headers, Jose\Object\JWKInterface $encryption_key )
$encryption_protected_headers array
$encryption_key Jose\Object\JWKInterface

getSupportedCompressionMethods() public method

getSupportedContentEncryptionAlgorithms() public method

getSupportedKeyEncryptionAlgorithms() public method

getSupportedSignatureAlgorithms() public method

isEncryptionSupportEnabled() public method

sign() public method

public sign ( $payload, array $signature_protected_headers, Jose\Object\JWKInterface $signature_key )
$signature_protected_headers array
$signature_key Jose\Object\JWKInterface

signAndEncrypt() public method

public signAndEncrypt ( $payload, array $signature_protected_headers, Jose\Object\JWKInterface $signature_key, array $encryption_protected_headers, Jose\Object\JWKInterface $encryption_key )
$signature_protected_headers array
$signature_key Jose\Object\JWKInterface
$encryption_protected_headers array
$encryption_key Jose\Object\JWKInterface