Class AbstractSamlRequestContext<T>
java.lang.Object
org.keycloak.services.clientpolicy.context.AbstractSamlRequestContext<T>
- Type Parameters:
T- The saml request type
- All Implemented Interfaces:
org.keycloak.services.clientpolicy.ClientPolicyContext,ClientModelContext
- Direct Known Subclasses:
SamlAuthnRequestContext,SamlLogoutRequestContext
public abstract class AbstractSamlRequestContext<T>
extends Object
implements org.keycloak.services.clientpolicy.ClientPolicyContext, ClientModelContext
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSamlRequestContext(T request, org.keycloak.models.ClientModel client, String protocolBinding) -
Method Summary
Modifier and TypeMethodDescriptionorg.keycloak.models.ClientModelGetter for the client model doing the request.abstract org.keycloak.services.clientpolicy.ClientPolicyEventgetEvent()Getter for the protocol binding type that is processing the request.Getter for the SAML request received.
-
Field Details
-
request
-
client
protected final org.keycloak.models.ClientModel client -
protocolBinding
-
-
Constructor Details
-
AbstractSamlRequestContext
-
-
Method Details
-
getEvent
public abstract org.keycloak.services.clientpolicy.ClientPolicyEvent getEvent()- Specified by:
getEventin interfaceorg.keycloak.services.clientpolicy.ClientPolicyContext
-
getRequest
Getter for the SAML request received.- Returns:
- The SAML request type
-
getClient
public org.keycloak.models.ClientModel getClient()Getter for the client model doing the request.- Specified by:
getClientin interfaceClientModelContext- Returns:
- The client model
-
getProtocolBinding
Getter for the protocol binding type that is processing the request.- Returns:
- The keycloak protocol binding type.
-