Class VerifiableCredentialOfferAction
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.requiredactions.VerifiableCredentialOfferAction
- All Implemented Interfaces:
RequiredActionFactory,RequiredActionProvider,OID4VCEnvironmentProviderFactory,EnvironmentDependentProviderFactory,Provider,ProviderFactory<RequiredActionProvider>
public class VerifiableCredentialOfferAction
extends Object
implements RequiredActionProvider, RequiredActionFactory, OID4VCEnvironmentProviderFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.keycloak.authentication.RequiredActionFactory
MAX_AUTH_AGE_CONFIG_PROPERTIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This is called when the server shuts down.create(KeycloakSession session) voidevaluateTriggers(RequiredActionContext context) Called every time a user authenticates.Display text used in admin console to reference this required actiongetId()voidinit(Config.Scope config) Only called once when the factory is first created.voidinitiatedActionCanceled(KeycloakSession session, AuthenticationSessionModel authSession) Callback to let the action know that an application-initiated action was canceled.Determines what type of support is provided for application-initiated actions.voidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedvoidprocessAction(RequiredActionContext context) Called when a required action has form input you want to process.voidIf the user has a required action set, this method will be the initial call to obtain what to display to the user's browser.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.protocol.oid4vc.OID4VCEnvironmentProviderFactory
isSupportedMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, orderMethods inherited from interface org.keycloak.authentication.RequiredActionFactory
getConfigMetadata, isConfigurable, isOneTimeAction, validateConfigMethods inherited from interface org.keycloak.authentication.RequiredActionProvider
getMaxAuthAge, getMaxAuthAge
-
Constructor Details
-
VerifiableCredentialOfferAction
public VerifiableCredentialOfferAction()
-
-
Method Details
-
getDisplayText
Description copied from interface:RequiredActionFactoryDisplay text used in admin console to reference this required action- Specified by:
getDisplayTextin interfaceRequiredActionFactory- Returns:
-
create
- Specified by:
createin interfaceProviderFactory<RequiredActionProvider>
-
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created.- Specified by:
initin interfaceProviderFactory<RequiredActionProvider>
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<RequiredActionProvider>
-
getId
- Specified by:
getIdin interfaceProviderFactory<RequiredActionProvider>
-
evaluateTriggers
Description copied from interface:RequiredActionProviderCalled every time a user authenticates. This checks to see if this required action should be triggered. The implementation of this method is responsible for setting the required action on the UserModel. For example, the UpdatePassword required actions checks the password policies to see if the password has expired.- Specified by:
evaluateTriggersin interfaceRequiredActionProvider
-
requiredActionChallenge
Description copied from interface:RequiredActionProviderIf the user has a required action set, this method will be the initial call to obtain what to display to the user's browser. Return null if no action should be done.- Specified by:
requiredActionChallengein interfaceRequiredActionProvider
-
processAction
Description copied from interface:RequiredActionProviderCalled when a required action has form input you want to process.- Specified by:
processActionin interfaceRequiredActionProvider
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProvider- Specified by:
closein interfaceProviderFactory<RequiredActionProvider>
-
initiatedActionSupport
Description copied from interface:RequiredActionProviderDetermines what type of support is provided for application-initiated actions.- Specified by:
initiatedActionSupportin interfaceRequiredActionProvider- Returns:
- InititatedActionsSupport
-
initiatedActionCanceled
public void initiatedActionCanceled(KeycloakSession session, AuthenticationSessionModel authSession) Description copied from interface:RequiredActionProviderCallback to let the action know that an application-initiated action was canceled.- Specified by:
initiatedActionCanceledin interfaceRequiredActionProvider- Parameters:
session- The Keycloak session.authSession- The authentication session.
-