PHP Class Jose\Object\JWE

Inheritance: extends JWT, implements Jose\Object\JWEInterface
Datei anzeigen Open project: spomky-labs/jose

Public Methods

Method 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

Method Description
checkHasNoAAD ( )
checkHasSharedProtectedHeaders ( )
checkRecipientHasNoHeaders ( integer $id )
getJSONBase ( ) : array

Method Details

addRecipientInformation() public method

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

addRecipientWithEncryptedKey() public method

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

countRecipients() public method

public countRecipients ( )

getAAD() public method

public getAAD ( )

getCiphertext() public method

public getCiphertext ( )

getEncodedSharedProtectedHeaders() public method

getIV() public method

public getIV ( )

getRecipient() public method

public getRecipient ( $id )

getRecipients() public method

public getRecipients ( )

getSharedHeader() public method

public getSharedHeader ( $key )

getSharedHeaders() public method

public getSharedHeaders ( )

getSharedProtectedHeader() public method

public getSharedProtectedHeader ( $key )

getSharedProtectedHeaders() public method

getTag() public method

public getTag ( )

hasSharedHeader() public method

public hasSharedHeader ( $key )

hasSharedProtectedHeader() public method

public hasSharedProtectedHeader ( $key )

isEncrypted() public method

public isEncrypted ( )

toCompactJSON() public method

public toCompactJSON ( $id )

toFlattenedJSON() public method

public toFlattenedJSON ( $id )

toJSON() public method

public toJSON ( )

withAAD() public method

public withAAD ( $aad )

withCiphertext() public method

public withCiphertext ( $ciphertext )

withEncodedSharedProtectedHeaders() public method

public withEncodedSharedProtectedHeaders ( $encoded_shared_protected_headers )

withIV() public method

public withIV ( $iv )

withSharedHeader() public method

public withSharedHeader ( $key, $value )

withSharedHeaders() public method

public withSharedHeaders ( array $shared_headers )
$shared_headers array

withSharedProtectedHeader() public method

public withSharedProtectedHeader ( $key, $value )

withSharedProtectedHeaders() public method

public withSharedProtectedHeaders ( array $shared_protected_headers )
$shared_protected_headers array

withTag() public method

public withTag ( $tag )