Module io.inverno.mod.security.jose
Package io.inverno.mod.security.jose
Interface JOSEObject<A,B extends JOSEHeader>
- Type Parameters:
A
- the payload typeB
- the JOSE header type
public interface JOSEObject<A,B extends JOSEHeader>
A JOSE object composed of a JOSE header and a payload and secured through cryptographic operations.
A JOSE object is serialized to a compact representation as defined by RFC7515 Section 7.1 and RFC7516 Section 7.1.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the JOSE header describing the cryptographic operations and parameters employed to secure the JOSE object.Returns the JOSE object payload.int
hashCode()
Serializes the JOSE object to a compact representation.
-
Method Details
-
getHeader
B getHeader()Returns the JOSE header describing the cryptographic operations and parameters employed to secure the JOSE object.
- Returns:
- the JOSE header
-
getPayload
A getPayload()Returns the JOSE object payload.
- Returns:
- the payload
-
toCompact
String toCompact()Serializes the JOSE object to a compact representation.
- Returns:
- the compact representation of the JOSE object
-
hashCode
int hashCode() -
equals
-