Optional payload: Partial<PoPTokenPayload>Payload of the PoP Token.
Optional Protected _payloadPayload of the PoP Token.
Set "aud" (Audience) Claim.
"aud" (Audience) Claim value to set on the JWT Claims Set.
Set "exp" (Expiration Time) Claim.
"exp" (Expiration Time) Claim value to set on the JWT Claims Set. When number is passed that is used as a value, when string is passed it is resolved to a time span and added to the current timestamp.
Set "iat" (Issued At) Claim and sets the "exp" (Expiration) Claim to the recommended 60 seconds later, if not yet set.
Optional input: number"iat" (Issued At) Claim value to set on the JWT Claim Set or undefined to use now.
Optional Set "iss" (Issuer) Claim.
"Issuer" Claim value to set on the JWT Claims Set.
Set "jti" (JWT ID) Claim.
Optional jwtId: string"jti" (JWT ID) Claim value to set on the JWT Claim Set or undefined to use a UUID.
Optional Set "nbf" (Not Before) Claim.
"nbf" (Not Before) Claim value to set on the JWT Claims Set. When number is passed that is used as a value, when string is passed it is resolved to a time span and added to the current timestamp.
Sets the requested optional identity claims.
Array of requestd optional identity claims.
Sets the protected PoP Token header.
Proof of Possession Token header.
Sets the public key of the PoP Token.
JWA signing algorithm.
Public JSON Web Key.
Sets the required identity claims.
Array of required identity claims.
Set "sub" (Subject) Claim.
"sub" (Subject) Claim value to set on the JWT Claims Set.
Sets whether the "aud" (Audience) claim should be present in the requested ICT.
Optional withAudience: booleanWhether the audience should be present.
Optional Signs and returns the JWT.
Private Key or Secret to sign the JWT with. See Algorithm Key Requirements.
Optional options: SignOptionsJWT Sign options.
Optional Generated using TypeDoc
The SignPoPToken class is used to build and sign Proof-of-Possession Tokens.