PHP Interface Jose\JWTCreatorInterface

Afficher le fichier Open project: spomky-labs/jose Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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

encrypt() public méthode

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
Résultat string

getSupportedCompressionMethods() public méthode

public getSupportedCompressionMethods ( ) : string[]
Résultat string[]

getSupportedContentEncryptionAlgorithms() public méthode

public getSupportedContentEncryptionAlgorithms ( ) : string[]
Résultat string[]

getSupportedKeyEncryptionAlgorithms() public méthode

public getSupportedKeyEncryptionAlgorithms ( ) : string[]
Résultat string[]

getSupportedSignatureAlgorithms() public méthode

public getSupportedSignatureAlgorithms ( ) : string[]
Résultat string[]

isEncryptionSupportEnabled() public méthode

public isEncryptionSupportEnabled ( ) : boolean
Résultat boolean

sign() public méthode

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
Résultat string

signAndEncrypt() public méthode

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
Résultat string