Class UserAuthenticatedWorkflowEventProvider

java.lang.Object
org.keycloak.models.workflow.AbstractWorkflowEventProvider
org.keycloak.models.workflow.events.UserAuthenticatedWorkflowEventProvider
All Implemented Interfaces:
WorkflowEventProvider, Provider

public class UserAuthenticatedWorkflowEventProvider extends AbstractWorkflowEventProvider
  • Constructor Details

    • UserAuthenticatedWorkflowEventProvider

      public UserAuthenticatedWorkflowEventProvider(KeycloakSession session, String configParameter, String providerId)
  • Method Details

    • getSupportedResourceType

      public ResourceType getSupportedResourceType()
      Description copied from interface: WorkflowEventProvider
      Returns the ResourceType that this event provider is capable of handling.
      Returns:
      the supported ResourceType for this event provider implementation
    • supports

      public boolean supports(Event event)
      Description copied from interface: WorkflowEventProvider
      Determines whether this provider supports the given user Event.
      Specified by:
      supports in interface WorkflowEventProvider
      Overrides:
      supports in class AbstractWorkflowEventProvider
      Parameters:
      event - the user event to check
      Returns:
      true if the event is supported, false otherwise
    • evaluate

      public boolean evaluate(WorkflowExecutionContext context)
      Description copied from interface: WorkflowEventProvider
      Evaluates whether the event in the workflow execution context matches this provider's criteria.

      Implementations should inspect the workflow event in the provided context and return true when the event matches the provider's specific conditions.
      Specified by:
      evaluate in interface WorkflowEventProvider
      Overrides:
      evaluate in class AbstractWorkflowEventProvider
      Parameters:
      context - the execution context for the workflow evaluation
      Returns:
      true if the event matches the criteria, false otherwise