Module io.inverno.mod.security.jose
Package io.inverno.mod.security.jose.jwt
Class JWTEAuthentication<A extends JWTClaimsSet>
java.lang.Object
io.inverno.mod.security.jose.jwt.JWTEAuthentication<A>
- Type Parameters:
A- the JWT claims set type
- All Implemented Interfaces:
Authentication,TokenAuthentication
public class JWTEAuthentication<A extends JWTClaimsSet>
extends Object
implements TokenAuthentication
A token authentication that uses the compact representation of a JWTE as token value.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Constructor Summary
ConstructorsConstructorDescriptionJWTEAuthentication(JWE<A> jwt) Creates a JWTE authentication with the specified JWT.Creates a denied JWTE authentication with the specified security error. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.inverno.mod.security.authentication.Authentication
isAnonymous
-
Constructor Details
-
JWTEAuthentication
Creates a JWTE authentication with the specified JWT.
- Parameters:
jwt- a JWTE
-
JWTEAuthentication
Creates a denied JWTE authentication with the specified security error.
- Parameters:
cause- a security error or null
-
-
Method Details
-
getJwt
Returns the JWTE.
- Returns:
- a JWTE or null if unauthenticated
-
getJWTClaimsSet
Returns the JWT claims set.
- Returns:
- the JWT claims set or null if unauthenticated
-
getToken
Returns the JWTE compact representation.
- Specified by:
getTokenin interfaceTokenAuthentication- Returns:
- the JWTE compact representation or null if unauthenticated
-
isAuthenticated
public boolean isAuthenticated()- Specified by:
isAuthenticatedin interfaceAuthentication
-
getCause
- Specified by:
getCausein interfaceAuthentication
-