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

public interface JWE<A> extends JOSEObject<A,JWEHeader>

A JSON Web Encryption object as defined by RFC7516.

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

Since:
1.5
Author:
Jeremy Kuhn
  • Method Details

    • getEncryptedKey

      String getEncryptedKey()

      Returns the encrypted key encoded as Base64URL.

      Returns:
      the Base64URL encoded encrypted key with no padding
    • getInitializationVector

      String getInitializationVector()

      Returns the initialization vector encoded as Base64URL.

      Returns:
      the Base64URL encoded initialization vector with no padding
    • getCipherText

      String getCipherText()

      Returns the cipher text encoded as Base64URL.

      Returns:
      the Base64URL encoded cipher text with no padding
    • getAuthenticationTag

      String getAuthenticationTag()

      Returns the authentication tag encoded as Base64URL.

      Returns:
      the Base64URL encoded authentication tag with no padding
    • hashCode

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

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