Class CredentialOfferActionTokenHandler
java.lang.Object
org.keycloak.authentication.actiontoken.AbstractActionTokenHandler<CredentialOfferActionToken>
org.keycloak.protocol.oid4vc.issuance.requiredactions.CredentialOfferActionTokenHandler
- All Implemented Interfaces:
ActionTokenHandler<CredentialOfferActionToken>,ActionTokenHandlerFactory<CredentialOfferActionToken>,Provider,ProviderFactory<ActionTokenHandler<CredentialOfferActionToken>>
public class CredentialOfferActionTokenHandler
extends AbstractActionTokenHandler<CredentialOfferActionToken>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUseTokenRepeatedly(CredentialOfferActionToken token, ActionTokenContext<CredentialOfferActionToken> tokenContext) Returnstruewhen the token can be used repeatedly to invoke the action,falsewhen the token is intended to be for single use only.getVerifiers(ActionTokenContext<CredentialOfferActionToken> tokenContext) Returns an array of verifiers that are tested prior to handling the token.jakarta.ws.rs.core.ResponsehandleToken(CredentialOfferActionToken token, ActionTokenContext<CredentialOfferActionToken> tokenContext) Performs the action as per the token details.Methods inherited from class org.keycloak.authentication.actiontoken.AbstractActionTokenHandler
close, create, eventType, getAuthenticationSessionIdFromToken, getDefaultErrorMessage, getDefaultEventError, getId, getTokenClass, init, postInit, startFreshAuthenticationSession, verifyEmailMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.authentication.actiontoken.ActionTokenHandler
preHandleTokenMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, order
-
Constructor Details
-
CredentialOfferActionTokenHandler
public CredentialOfferActionTokenHandler()
-
-
Method Details
-
getVerifiers
public TokenVerifier.Predicate<? super CredentialOfferActionToken>[] getVerifiers(ActionTokenContext<CredentialOfferActionToken> 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.
-
handleToken
public jakarta.ws.rs.core.Response handleToken(CredentialOfferActionToken token, ActionTokenContext<CredentialOfferActionToken> 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:
-
canUseTokenRepeatedly
public boolean canUseTokenRepeatedly(CredentialOfferActionToken token, ActionTokenContext<CredentialOfferActionToken> 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 interfaceActionTokenHandler<CredentialOfferActionToken>- Overrides:
canUseTokenRepeatedlyin classAbstractActionTokenHandler<CredentialOfferActionToken>- Returns:
- see above
-
verifyCredentialOfferAction
protected TokenVerifier.Predicate<CredentialOfferActionToken> verifyCredentialOfferAction(ActionTokenContext<CredentialOfferActionToken> tokenContext)
-