PHP Interface Jose\Object\JWSInterface

Inheritance: extends Jose\Object\JWTInterface
显示文件 Open project: spomky-labs/jose Interface Usage Examples

Public Methods

Method 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 method

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

addSignatureInformation() public method

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
return Jose\Object\JWSInterface

countSignatures() public method

Returns the number of signature associated with the JWS.
public countSignatures ( ) : integer
return integer

getEncodedPayload() public method

public getEncodedPayload ( Jose\Object\SignatureInterface $signature ) : string | null
$signature Jose\Object\SignatureInterface
return string | null

getSignature() public method

public getSignature ( integer $id ) : Jose\Object\SignatureInterface
$id integer
return Jose\Object\SignatureInterface

getSignatures() public method

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

isPayloadDetached() public method

public isPayloadDetached ( ) : boolean
return boolean

toCompactJSON() public method

public toCompactJSON ( integer $id ) : string
$id integer
return string

toFlattenedJSON() public method

public toFlattenedJSON ( integer $id ) : string
$id integer
return string

toJSON() public method

public toJSON ( ) : string
return string

withAttachedPayload() public method

public withAttachedPayload ( ) : Jose\Object\JWTInterface
return Jose\Object\JWTInterface

withDetachedPayload() public method

public withDetachedPayload ( ) : Jose\Object\JWTInterface
return Jose\Object\JWTInterface