java.lang.Object
io.inverno.mod.security.jose.internal.AbstractJOSEObject<A,JWEHeader,GenericJWEPayload<A>>
io.inverno.mod.security.jose.internal.jwe.GenericJWE<A>
Type Parameters:
A - the payload type
All Implemented Interfaces:
JOSEObject<A,JWEHeader>, JWE<A>

public class GenericJWE<A> extends AbstractJOSEObject<A,JWEHeader,GenericJWEPayload<A>> implements JWE<A>

Generic JSON Web Encryption implementation.

Since:
1.5
Author:
Jeremy Kuhn
  • Constructor Details

    • GenericJWE

      public GenericJWE(GenericJWEHeader header, GenericJWEPayload<A> payload, String initializationVector, String authenticationTag)

      Creates a generic JWE.

      Parameters:
      header - the JWE header
      payload - the JWE payload
      initializationVector - the Base64URL encoded initialization vector without padding
      authenticationTag - the Base64URL encoded authentication tag without padding
    • GenericJWE

      public GenericJWE(GenericJWEHeader header, GenericJWEPayload<A> payload, String initializationVector, String authenticationTag, String encryptedKey, JWK cek)

      Creates a generic JWE with encrypted key and corresponding content encryption key.

      Parameters:
      header - the JWE header
      payload - the JWE payload
      initializationVector - the Base64URL encoded initialization vector without padding
      authenticationTag - the Base64URL encoded authentication tag without padding
      encryptedKey - the encrypted key
      cek - the corresponding CEK
  • Method Details