|
keycloak-service
|


公開メンバ関数 | |
| Response | handleToken (T token, ActionTokenContext< T > tokenContext) |
| Class< T > | getTokenClass () |
| default Predicate<? super T > [] | getVerifiers (ActionTokenContext< T > tokenContext) |
| String | getAuthenticationSessionIdFromToken (T token, ActionTokenContext< T > tokenContext, AuthenticationSessionModel currentAuthSession) |
| EventType | eventType () |
| String | getDefaultEventError () |
| String | getDefaultErrorMessage () |
| AuthenticationSessionModel | startFreshAuthenticationSession (T token, ActionTokenContext< T > tokenContext) throws VerificationException |
| boolean | canUseTokenRepeatedly (T token, ActionTokenContext< T > tokenContext) |
Handler of the action token.
| <T> | Class implementing the action token |
| boolean org.keycloak.authentication.actiontoken.ActionTokenHandler< T extends JsonWebToken >.canUseTokenRepeatedly | ( | T | token, |
| ActionTokenContext< T > | tokenContext | ||
| ) |
Returns
when the token can be used repeatedly to invoke the action,
when the token is intended to be for single use only.
| EventType org.keycloak.authentication.actiontoken.ActionTokenHandler< T extends JsonWebToken >.eventType | ( | ) |
Returns a event type logged with EventBuilder class.
| String org.keycloak.authentication.actiontoken.ActionTokenHandler< T extends JsonWebToken >.getAuthenticationSessionIdFromToken | ( | T | token, |
| ActionTokenContext< T > | tokenContext, | ||
| AuthenticationSessionModel | currentAuthSession | ||
| ) |
Returns a compound authentication session ID requested from within the given token that the handler should attempt to join.
| token | Token. Can be null |
| tokenContext | |
| currentAuthSession | Authentication session that is currently in progress, null |
| String org.keycloak.authentication.actiontoken.ActionTokenHandler< T extends JsonWebToken >.getDefaultErrorMessage | ( | ) |
Returns an error to be shown in the response when token handling fails and no more specific error message is provided.
| String org.keycloak.authentication.actiontoken.ActionTokenHandler< T extends JsonWebToken >.getDefaultEventError | ( | ) |
Returns an error to be shown in the EventBuilder detail when token handling fails and no more specific error is provided.
| Class<T> org.keycloak.authentication.actiontoken.ActionTokenHandler< T extends JsonWebToken >.getTokenClass | ( | ) |
Returns the Java token class for use with deserialization.
|
inline |
Returns an array of verifiers that are tested prior to handling the token. All verifiers have to pass successfully for token to be handled. The returned array must not be
.
| tokenContext |
| Response org.keycloak.authentication.actiontoken.ActionTokenHandler< T extends JsonWebToken >.handleToken | ( | T | token, |
| ActionTokenContext< T > | tokenContext | ||
| ) |
Performs the action as per the token details. This method is only called if all verifiers returned in handleToken succeed.
| token | |
| tokenContext |
| AuthenticationSessionModel org.keycloak.authentication.actiontoken.ActionTokenHandler< T extends JsonWebToken >.startFreshAuthenticationSession | ( | T | token, |
| ActionTokenContext< T > | tokenContext | ||
| ) | throws VerificationException |
Creates a fresh authentication session according to the information from the token. The default implementation creates a new authentication session that requests termination after required actions.
| token | |
| tokenContext |
1.8.13