PHP Interface Jose\JWTCreatorInterface

Mostra file Open project: spomky-labs/jose Interface Usage Examples

Public Methods

Method Description
enableEncryptionSupport ( jose\EncrypterInterface $encrypter )
encrypt ( string $payload, array $encryption_protected_headers, Jose\Object\JWKInterface $encryption_key ) : string
getSupportedCompressionMethods ( ) : string[]
getSupportedContentEncryptionAlgorithms ( ) : string[]
getSupportedKeyEncryptionAlgorithms ( ) : string[]
getSupportedSignatureAlgorithms ( ) : string[]
isEncryptionSupportEnabled ( ) : boolean
sign ( mixed $payload, array $signature_protected_headers, Jose\Object\JWKInterface $signature_key ) : string
signAndEncrypt ( mixed $payload, array $signature_protected_headers, Jose\Object\JWKInterface $signature_key, array $encryption_protected_headers, Jose\Object\JWKInterface $encryption_key ) : string

Method Details

enableEncryptionSupport() public method

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

encrypt() public method

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

getSupportedCompressionMethods() public method

public getSupportedCompressionMethods ( ) : string[]
return string[]

getSupportedContentEncryptionAlgorithms() public method

public getSupportedContentEncryptionAlgorithms ( ) : string[]
return string[]

getSupportedKeyEncryptionAlgorithms() public method

public getSupportedKeyEncryptionAlgorithms ( ) : string[]
return string[]

getSupportedSignatureAlgorithms() public method

public getSupportedSignatureAlgorithms ( ) : string[]
return string[]

isEncryptionSupportEnabled() public method

sign() public method

public sign ( mixed $payload, array $signature_protected_headers, Jose\Object\JWKInterface $signature_key ) : string
$payload mixed
$signature_protected_headers array
$signature_key Jose\Object\JWKInterface
return string

signAndEncrypt() public method

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