Interface JOSEObject<A,B extends JOSEHeader>

Type Parameters:
A - the payload type
B - the JOSE header type
All Known Subinterfaces:
JWE<A>, JWS<A>

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 Type
    Method
    Description
    boolean
     
    Returns the JOSE header describing the cryptographic operations and parameters employed to secure the JOSE object.
    Returns the JOSE object payload.
    int
     
    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()
      Overrides:
      hashCode in class Object
    • equals

      boolean equals(Object obj)
      Overrides:
      equals in class Object