Interface TokenManager
- All Superinterfaces:
org.apache.ignite.internal.lang.Debuggable,org.apache.ignite.internal.manager.IgniteComponent
- All Known Implementing Classes:
JwtTokenManager
public interface TokenManager
extends org.apache.ignite.internal.manager.IgniteComponent
Token manager.
-
Field Summary
Fields inherited from interface org.apache.ignite.internal.lang.Debuggable
INDENTATION -
Method Summary
Modifier and TypeMethodDescriptionissueToken(org.apache.ignite.internal.security.authentication.UserDetails userDetails) Issue token that can be used for authentication.revokeAllTokens(String username) Revokes all tokens for a given username issued on or before the current moment.revokeToken(String token) Revokes token.org.apache.ignite.internal.security.authentication.UserDetailsvalidateAndExtractDetails(String token) Validate token and return user details that were constructed from token.Methods inherited from interface org.apache.ignite.internal.lang.Debuggable
dumpStateMethods inherited from interface org.apache.ignite.internal.manager.IgniteComponent
beforeNodeStop, startAsync, stopAsync, stopAsync
-
Method Details
-
issueToken
Issue token that can be used for authentication.- Parameters:
userDetails- User details.- Returns:
- Token.
-
validateAndExtractDetails
org.apache.ignite.internal.security.authentication.UserDetails validateAndExtractDetails(String token) Validate token and return user details that were constructed from token. If token is invalid, returnnull.- Parameters:
token- Token. Can benull.- Returns:
- User details.
- Throws:
JwtValidationException- If token is invalid.
-
revokeToken
Revokes token.- Parameters:
token- Token.
-
revokeAllTokens
Revokes all tokens for a given username issued on or before the current moment.- Parameters:
username- Username.
-