PHP Class Jose\Object\JWE

Inheritance: extends JWT, implements Jose\Object\JWEInterface
Afficher le fichier Open project: spomky-labs/jose

Méthodes publiques

Méthode Description
addRecipientInformation ( Jose\Object\JWKInterface $recipient_key, $recipient_headers = [] )
addRecipientWithEncryptedKey ( $encrypted_key, array $recipient_headers )
countRecipients ( )
getAAD ( )
getCiphertext ( )
getEncodedSharedProtectedHeaders ( )
getIV ( )
getRecipient ( $id )
getRecipients ( )
getSharedHeader ( $key )
getSharedHeaders ( )
getSharedProtectedHeader ( $key )
getSharedProtectedHeaders ( )
getTag ( )
hasSharedHeader ( $key )
hasSharedProtectedHeader ( $key )
isEncrypted ( )
toCompactJSON ( $id )
toFlattenedJSON ( $id )
toJSON ( )
withAAD ( $aad )
withCiphertext ( $ciphertext )
withEncodedSharedProtectedHeaders ( $encoded_shared_protected_headers )
withIV ( $iv )
withSharedHeader ( $key, $value )
withSharedHeaders ( array $shared_headers )
withSharedProtectedHeader ( $key, $value )
withSharedProtectedHeaders ( array $shared_protected_headers )
withTag ( $tag )

Private Methods

Méthode Description
checkHasNoAAD ( )
checkHasSharedProtectedHeaders ( )
checkRecipientHasNoHeaders ( integer $id )
getJSONBase ( ) : array

Method Details

addRecipientInformation() public méthode

public addRecipientInformation ( Jose\Object\JWKInterface $recipient_key, $recipient_headers = [] )
$recipient_key Jose\Object\JWKInterface

addRecipientWithEncryptedKey() public méthode

public addRecipientWithEncryptedKey ( $encrypted_key, array $recipient_headers )
$recipient_headers array

countRecipients() public méthode

public countRecipients ( )

getAAD() public méthode

public getAAD ( )

getCiphertext() public méthode

public getCiphertext ( )

getEncodedSharedProtectedHeaders() public méthode

getIV() public méthode

public getIV ( )

getRecipient() public méthode

public getRecipient ( $id )

getRecipients() public méthode

public getRecipients ( )

getSharedHeader() public méthode

public getSharedHeader ( $key )

getSharedHeaders() public méthode

public getSharedHeaders ( )

getSharedProtectedHeader() public méthode

public getSharedProtectedHeader ( $key )

getSharedProtectedHeaders() public méthode

getTag() public méthode

public getTag ( )

hasSharedHeader() public méthode

public hasSharedHeader ( $key )

hasSharedProtectedHeader() public méthode

public hasSharedProtectedHeader ( $key )

isEncrypted() public méthode

public isEncrypted ( )

toCompactJSON() public méthode

public toCompactJSON ( $id )

toFlattenedJSON() public méthode

public toFlattenedJSON ( $id )

toJSON() public méthode

public toJSON ( )

withAAD() public méthode

public withAAD ( $aad )

withCiphertext() public méthode

public withCiphertext ( $ciphertext )

withEncodedSharedProtectedHeaders() public méthode

public withEncodedSharedProtectedHeaders ( $encoded_shared_protected_headers )

withIV() public méthode

public withIV ( $iv )

withSharedHeader() public méthode

public withSharedHeader ( $key, $value )

withSharedHeaders() public méthode

public withSharedHeaders ( array $shared_headers )
$shared_headers array

withSharedProtectedHeader() public méthode

public withSharedProtectedHeader ( $key, $value )

withSharedProtectedHeaders() public méthode

public withSharedProtectedHeaders ( array $shared_protected_headers )
$shared_protected_headers array

withTag() public méthode

public withTag ( $tag )