Class AbstractSamlRequestContext<T>

java.lang.Object
org.keycloak.services.clientpolicy.context.AbstractSamlRequestContext<T>
Type Parameters:
T - The saml request type
All Implemented Interfaces:
ClientPolicyContext
Direct Known Subclasses:
SamlAuthnRequestContext, SamlLogoutRequestContext

public abstract class AbstractSamlRequestContext<T> extends Object implements ClientPolicyContext

Abstract saml request context for any SAML request received. The context will have the type object received, the client model and binding type the client used to connect.

Author:
rmartinc
  • Field Details

    • request

      protected final T request
    • client

      protected final ClientModel client
    • protocolBinding

      protected final String protocolBinding
  • Constructor Details

    • AbstractSamlRequestContext

      public AbstractSamlRequestContext(T request, ClientModel client, String protocolBinding)
  • Method Details

    • getEvent

      public abstract ClientPolicyEvent getEvent()
      returns ClientPolicyEvent of client policy related events.
      Specified by:
      getEvent in interface ClientPolicyContext
      Returns:
      ClientPolicyEvent
    • getRequest

      public T getRequest()
      Getter for the SAML request received.
      Returns:
      The SAML request type
    • getClient

      public ClientModel getClient()
      Getter for the client model doing the request.
      Returns:
      The client model
    • getProtocolBinding

      public String getProtocolBinding()
      Getter for the protocol binding type that is processing the request.
      Returns:
      The keycloak protocol binding type.