Module io.inverno.mod.security
Interface TokenAuthentication
- All Superinterfaces:
Authentication
- All Known Implementing Classes:
JWEAuthentication
,JWSAuthentication
,JWTEAuthentication
,JWTSAuthentication
An authentication which comprises a token that uniquely and securely identifies the authentication.
An Authenticator
might respond with a token authentication to communicate temporary credentials resulting from the authentication to the authenticated entity. These TokenCredentials
can then later be used by the entity to authenticate using a different channel in a simpler or more perfomant way than the original authentication.
A properly secured token should be collision-free and hardly forgeable.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Methods inherited from interface io.inverno.mod.security.authentication.Authentication
getCause, isAnonymous, isAuthenticated
-
Method Details
-
getToken
String getToken()Returns the token resulting from the authentication process.
- Returns:
- a token that securely identifies the authentication
-