Module io.inverno.mod.security.jose
Class AbstractJOSEObject<A,B extends JOSEHeader,C extends AbstractJOSEPayload<A>>
java.lang.Object
io.inverno.mod.security.jose.internal.AbstractJOSEObject<A,B,C>
- Type Parameters:
A- the payload typeB- the JOSE header typeC- the JOSE payload type
- All Implemented Interfaces:
JOSEObject<A,B>
- Direct Known Subclasses:
GenericJWE,GenericJWS
public abstract class AbstractJOSEObject<A,B extends JOSEHeader,C extends AbstractJOSEPayload<A>>
extends Object
implements JOSEObject<A,B>
Base JOSE object implementation.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractJOSEObject(B header, C payload) Creates a JOSE object with the specified JOSE header and JOSE payload. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.inverno.mod.security.jose.JOSEObject
toCompact
-
Field Details
-
header
The JOSE header. -
payload
The JOSE payload.
-
-
Constructor Details
-
AbstractJOSEObject
Creates a JOSE object with the specified JOSE header and JOSE payload.
- Parameters:
header- the JOSE headerpayload- the JOSE payload
-
-
Method Details
-
getHeader
Description copied from interface:JOSEObjectReturns the JOSE header describing the cryptographic operations and parameters employed to secure the JOSE object.
- Specified by:
getHeaderin interfaceJOSEObject<A,B extends JOSEHeader> - Returns:
- the JOSE header
-
getPayload
Description copied from interface:JOSEObjectReturns the JOSE object payload.
- Specified by:
getPayloadin interfaceJOSEObject<A,B extends JOSEHeader> - Returns:
- the payload
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceJOSEObject<A,B extends JOSEHeader> - Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceJOSEObject<A,B extends JOSEHeader> - Overrides:
equalsin classObject
-