PHP Interface Jose\Object\JWSInterface

Inheritance: extends Jose\Object\JWTInterface
Afficher le fichier Open project: spomky-labs/jose Interface Usage Examples

Méthodes publiques

Méthode Description
addSignatureFromLoadedData ( string $signature, string | null $encoded_protected_headers, array $headers ) : Jose\Object\JWSInterface
addSignatureInformation ( Jose\Object\JWKInterface $signature_key, array $protected_headers, array $headers = [] ) : Jose\Object\JWSInterface
countSignatures ( ) : integer Returns the number of signature associated with the JWS.
getEncodedPayload ( Jose\Object\SignatureInterface $signature ) : string | null
getSignature ( integer $id ) : Jose\Object\SignatureInterface
getSignatures ( ) : Jose\Object\SignatureInterface[] Returns the signature associated with the JWS.
isPayloadDetached ( ) : boolean
toCompactJSON ( integer $id ) : string
toFlattenedJSON ( integer $id ) : string
toJSON ( ) : string
withAttachedPayload ( ) : Jose\Object\JWTInterface
withDetachedPayload ( ) : Jose\Object\JWTInterface

Method Details

addSignatureFromLoadedData() public méthode

public addSignatureFromLoadedData ( string $signature, string | null $encoded_protected_headers, array $headers ) : Jose\Object\JWSInterface
$signature string
$encoded_protected_headers string | null
$headers array
Résultat Jose\Object\JWSInterface

addSignatureInformation() public méthode

public addSignatureInformation ( Jose\Object\JWKInterface $signature_key, array $protected_headers, array $headers = [] ) : Jose\Object\JWSInterface
$signature_key Jose\Object\JWKInterface
$protected_headers array
$headers array
Résultat Jose\Object\JWSInterface

countSignatures() public méthode

Returns the number of signature associated with the JWS.
public countSignatures ( ) : integer
Résultat integer

getEncodedPayload() public méthode

public getEncodedPayload ( Jose\Object\SignatureInterface $signature ) : string | null
$signature Jose\Object\SignatureInterface
Résultat string | null

getSignature() public méthode

public getSignature ( integer $id ) : Jose\Object\SignatureInterface
$id integer
Résultat Jose\Object\SignatureInterface

getSignatures() public méthode

Returns the signature associated with the JWS.
public getSignatures ( ) : Jose\Object\SignatureInterface[]
Résultat Jose\Object\SignatureInterface[]

isPayloadDetached() public méthode

public isPayloadDetached ( ) : boolean
Résultat boolean

toCompactJSON() public méthode

public toCompactJSON ( integer $id ) : string
$id integer
Résultat string

toFlattenedJSON() public méthode

public toFlattenedJSON ( integer $id ) : string
$id integer
Résultat string

toJSON() public méthode

public toJSON ( ) : string
Résultat string

withAttachedPayload() public méthode

public withAttachedPayload ( ) : Jose\Object\JWTInterface
Résultat Jose\Object\JWTInterface

withDetachedPayload() public méthode

public withDetachedPayload ( ) : Jose\Object\JWTInterface
Résultat Jose\Object\JWTInterface