FunctionReturns the JWS signature getSignature
a string with the the JWS signature
FunctionReturns the JWS signature input getSignInput
a string with the input to be signed by the signing algorithm
FunctionIndicates if the JWS has been signed isSigned
true if signed, else false
FunctionSets the identifier of the signing algorithm, if not yet signed setSignAlgorithm
the identifier of the algorithm used to sign the payload
true if identifier could be set, false if already signed
FunctionSets the signature, if not yet signed setSignature
the base64url encoded signature
true if signature could be added, false if already signed
FunctionReturn a compact serialised JWS as a compact serialized string toCompact
the JWS as a compact serialized JWS string
FunctionReturns a flattened JWS toFlat
the JWS as a flattened JWS plain JavaScript object
FunctionReturns a full JWS toFull
the JWS as a full JWS plain JavaScript object
StaticfromFunctionCreates a new JWS object from a compact serialised JWS string fromCompact
a compact serialised JWS string
a new JWS object
StaticfromFunctionCreates a new JWS object from a plain javaScript object fromObject
a plain object
a new JWS object
StaticfromFunctionCreates a new JWS from a payload fromPayload
the JWS payload
a new Binary Array
A class representing a JSON Web Token (JWS) Jws
Remarks
Whiteflag uses JSON Web Signatures (JWS) for one of its authentication methods. This class provides the basic (not Whiteflag- specific) functionality to create, sign and convert JWSs for other Whiteflag packages.