Module io.inverno.mod.security
Class TokenCredentials
java.lang.Object
io.inverno.mod.security.authentication.TokenCredentials
- All Implemented Interfaces:
Credentials
Credentials used to authenticate an entity based on a verifiable token.
A token is shared between the entity and the authenticator and must be verifiable during the authentication process. A token might be generated by an authority trusted by both the entity and the application, each party being then able to obtain or authenticate the token to the trusted authority. Other approaches might also include symetric or asymetric cryptographic processing.
In order to provide proper security, implementations should choose properly secured tokens which are collision-free and hardly forgeable.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Constructor Summary
ConstructorDescriptionTokenCredentials
(String token) Creates a token credentials with the specified value. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.inverno.mod.security.authentication.Credentials
isLocked
-
Constructor Details
-
TokenCredentials
Creates a token credentials with the specified value.
- Parameters:
token
- a token
-
-
Method Details
-
getToken
Returns the token value.
- Returns:
- a token
-