Module io.inverno.mod.security.jose
Class AbstractJsonJOSEObject<A>
java.lang.Object
io.inverno.mod.security.jose.internal.AbstractJsonJOSEObject<A>
- Type Parameters:
A- the payload type
- All Implemented Interfaces:
JsonJOSEObject<A>
- Direct Known Subclasses:
GenericJsonJWE,GenericJsonJWS
Base JSON JOSE Object implementation.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.databind.ObjectMapperThe object mapper. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractJsonJOSEObject(com.fasterxml.jackson.databind.ObjectMapper mapper) Creates a JSON JOSE object. -
Method Summary
-
Field Details
-
mapper
protected final com.fasterxml.jackson.databind.ObjectMapper mapperThe object mapper.
-
-
Constructor Details
-
AbstractJsonJOSEObject
public AbstractJsonJOSEObject(com.fasterxml.jackson.databind.ObjectMapper mapper) Creates a JSON JOSE object.
- Parameters:
mapper- an object mapper
-
-
Method Details
-
toJson
Description copied from interface:JsonJOSEObjectSerializes the JOSE object to a JSON representation.
- Specified by:
toJsonin interfaceJsonJOSEObject<A>- Returns:
- the JSON representation of the JOSE object
- Throws:
JOSEProcessingException- if there was an error serializing the JOSE object
-
hashCode
public int hashCode() -
equals
-