PHP Интерфейс Jose\Object\JWSInterface

Наследование: extends Jose\Object\JWTInterface
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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

Описание методов

addSignatureFromLoadedData() публичный Метод

public addSignatureFromLoadedData ( string $signature, string | null $encoded_protected_headers, array $headers ) : Jose\Object\JWSInterface
$signature string
$encoded_protected_headers string | null
$headers array
Результат Jose\Object\JWSInterface

addSignatureInformation() публичный Метод

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
Результат Jose\Object\JWSInterface

countSignatures() публичный Метод

Returns the number of signature associated with the JWS.
public countSignatures ( ) : integer
Результат integer

getEncodedPayload() публичный Метод

public getEncodedPayload ( Jose\Object\SignatureInterface $signature ) : string | null
$signature Jose\Object\SignatureInterface
Результат string | null

getSignature() публичный Метод

public getSignature ( integer $id ) : Jose\Object\SignatureInterface
$id integer
Результат Jose\Object\SignatureInterface

getSignatures() публичный Метод

Returns the signature associated with the JWS.
public getSignatures ( ) : Jose\Object\SignatureInterface[]
Результат Jose\Object\SignatureInterface[]

isPayloadDetached() публичный Метод

public isPayloadDetached ( ) : boolean
Результат boolean

toCompactJSON() публичный Метод

public toCompactJSON ( integer $id ) : string
$id integer
Результат string

toFlattenedJSON() публичный Метод

public toFlattenedJSON ( integer $id ) : string
$id integer
Результат string

toJSON() публичный Метод

public toJSON ( ) : string
Результат string

withAttachedPayload() публичный Метод

public withAttachedPayload ( ) : Jose\Object\JWTInterface
Результат Jose\Object\JWTInterface

withDetachedPayload() публичный Метод

public withDetachedPayload ( ) : Jose\Object\JWTInterface
Результат Jose\Object\JWTInterface