Class JWEAuthentication<A extends Authentication>

java.lang.Object
io.inverno.mod.security.jose.jwe.JWEAuthentication<A>
Type Parameters:
A - the original authentication type
All Implemented Interfaces:
Authentication, TokenAuthentication

public class JWEAuthentication<A extends Authentication> extends Object implements TokenAuthentication

A token authentication that wraps the original authentication in a JWE and uses its compact representation as token value.

Since:
1.5
Author:
Jeremy Kuhn
  • Constructor Details

    • JWEAuthentication

      public JWEAuthentication(JWE<A> jwe)

      Creates a JWE authentication with the specified JWE.

      Parameters:
      jwe - a JWE wrapping the original authentication
    • JWEAuthentication

      public JWEAuthentication(SecurityException cause)

      Creates a denied JWE authentication with the specified security error.

      Parameters:
      cause - a security error or null
  • Method Details