Module io.inverno.mod.security.jose
Class AbstractJOSEPayload<A>
java.lang.Object
io.inverno.mod.security.jose.internal.AbstractJOSEPayload<A>
- Type Parameters:
A- the payload type
- Direct Known Subclasses:
GenericJWEPayload,GenericJWSPayload
Base JOSE payload which holds the actual JOSE object payload, the serialized raw representation and the Base64URL encoded representation without padding.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the Base64URL encoded representation.getRaw()Returns the serialized raw representation.getValue()Returns the actual payloadinthashCode()voidsetEncoded(String encoded) Sets the Base64URL encoded representation.voidSets the serialized raw representation.
-
Field Details
-
value
The payload value. -
raw
The raw representation of the payload. -
encoded
The Base64URL encoded payload without padding.
-
-
Constructor Details
-
AbstractJOSEPayload
Creates a JOSE payload.
- Parameters:
value- the actual payload
-
-
Method Details
-
getValue
Returns the actual payload
- Returns:
- the payload value
-
setRaw
Sets the serialized raw representation.
- Parameters:
raw- the serialized payload
-
getRaw
Returns the serialized raw representation.
- Returns:
- the serialiazed payload
-
setEncoded
Sets the Base64URL encoded representation.
- Parameters:
encoded- the Base64URL payload without padding
-
getEncoded
Returns the Base64URL encoded representation.
- Returns:
- the Base64URL payload without padding
-
hashCode
public int hashCode() -
equals
-