Type Parameters:
A - the payload type
All Superinterfaces:
JOSEObject<A,JWSHeader>

public interface JWS<A> extends JOSEObject<A,JWSHeader>

A JSON Web Signature object as defined by RFC7515.

This represents a single JWS object serialized using the compact representation as defined by RFC7515 Section 7.1.

Since:
1.5
Author:
Jeremy Kuhn
  • Method Details

    • getSignature

      String getSignature()

      Returns the signature encoded as Base64URL.

      Returns:
      the Base64URL encoded signature with no padding
    • toDetachedCompact

      String toDetachedCompact()

      Returns the the detached compact representation of the JWS as defined by RFC7797.

      The resulting compact representation basically misses the payload part which must be communicated to the recipient by external means.

      Returns:
      a detached compact representation of the JWS
    • hashCode

      int hashCode()
      Specified by:
      hashCode in interface JOSEObject<A,JWSHeader>
      Overrides:
      hashCode in class Object
    • equals

      boolean equals(Object obj)
      Specified by:
      equals in interface JOSEObject<A,JWSHeader>
      Overrides:
      equals in class Object