Class JWSAuthentication<A extends Authentication>

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

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

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

Since:
1.5
Author:
Jeremy Kuhn
  • Constructor Details

    • JWSAuthentication

      public JWSAuthentication(JWS<A> jws)

      Creates a JWS authentication with the specified JWS.

      Parameters:
      jws - a JWS wrapping the original authentication
    • JWSAuthentication

      public JWSAuthentication(SecurityException cause)

      Creates a denied JWS authentication with the specified security error.

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