Class JWSBase
java.lang.Object
de.christofreichardt.json.websignature.JWSBase
- Direct Known Subclasses:
JWSSigner,JWSValidator
This class provides some core functionality related to creating and validating signatures.
- Author:
- Christof Reichardt
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.json.JsonObjectReturns the JOSE Header asJsonObject.jakarta.json.JsonStructureReturns the payload asJsonObject.Returns the string representation of the JOSE header.Returns the string representation of the actual payload.
-
Method Details
-
getStrJoseHeader
Returns the string representation of the JOSE header. The raw bytes used for creating the signature will be derived from this string.- Returns:
- the string representation of the JOSE header.
-
getJoseHeader
public jakarta.json.JsonObject getJoseHeader()Returns the JOSE Header asJsonObject.- Returns:
- the JOSE Header as
JsonObject.
-
getStrPayload
Returns the string representation of the actual payload. The raw bytes used for creating the signature will be derived from this string.- Returns:
- the string representation of the actual payload.
-
getPayload
public jakarta.json.JsonStructure getPayload()Returns the payload asJsonObject.- Returns:
- the payload as
JsonObject.
-