Class ResetCredentialsActionTokenHandler
- java.lang.Object
- 
- org.keycloak.authentication.actiontoken.AbstractActionTokenHandler<ResetCredentialsActionToken>
- 
- org.keycloak.authentication.actiontoken.resetcred.ResetCredentialsActionTokenHandler
 
 
- 
- All Implemented Interfaces:
- ActionTokenHandler<ResetCredentialsActionToken>,- ActionTokenHandlerFactory<ResetCredentialsActionToken>,- Provider,- ProviderFactory<ActionTokenHandler<ResetCredentialsActionToken>>
 
 public class ResetCredentialsActionTokenHandler extends AbstractActionTokenHandler<ResetCredentialsActionToken> - Author:
- hmlnarik
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classResetCredentialsActionTokenHandler.ResetCredsAuthenticationProcessor
 - 
Constructor SummaryConstructors Constructor Description ResetCredentialsActionTokenHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanUseTokenRepeatedly(ResetCredentialsActionToken token, ActionTokenContext tokenContext)Returnstruewhen the token can be used repeatedly to invoke the action,falsewhen the token is intended to be for single use only.TokenVerifier.Predicate<? super ResetCredentialsActionToken>[]getVerifiers(ActionTokenContext<ResetCredentialsActionToken> tokenContext)Returns an array of verifiers that are tested prior to handling the token.javax.ws.rs.core.ResponsehandleToken(ResetCredentialsActionToken token, ActionTokenContext tokenContext)Performs the action as per the token details.- 
Methods inherited from class org.keycloak.authentication.actiontoken.AbstractActionTokenHandlerclose, create, eventType, getAuthenticationSessionIdFromToken, getDefaultErrorMessage, getDefaultEventError, getId, getTokenClass, init, postInit, startFreshAuthenticationSession, verifyEmail
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
 
- 
 
- 
- 
- 
Method Detail- 
getVerifierspublic TokenVerifier.Predicate<? super ResetCredentialsActionToken>[] getVerifiers(ActionTokenContext<ResetCredentialsActionToken> tokenContext) Description copied from interface:ActionTokenHandlerReturns 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 benull.- Returns:
- Verifiers or an empty array. The returned array must not be null.
 
 - 
handleTokenpublic javax.ws.rs.core.Response handleToken(ResetCredentialsActionToken token, ActionTokenContext tokenContext) Description copied from interface:ActionTokenHandlerPerforms the action as per the token details. This method is only called if all verifiers returned inActionTokenHandler.handleToken(T, org.keycloak.authentication.actiontoken.ActionTokenContext<T>)succeed.- Returns:
 
 - 
canUseTokenRepeatedlypublic boolean canUseTokenRepeatedly(ResetCredentialsActionToken token, ActionTokenContext tokenContext) Description copied from interface:ActionTokenHandlerReturnstruewhen the token can be used repeatedly to invoke the action,falsewhen the token is intended to be for single use only.- Specified by:
- canUseTokenRepeatedlyin interface- ActionTokenHandler<ResetCredentialsActionToken>
- Overrides:
- canUseTokenRepeatedlyin class- AbstractActionTokenHandler<ResetCredentialsActionToken>
- Returns:
- see above
 
 
- 
 
-