Package net.shibboleth.idp.cas.flow.impl
Class AbstractCASProtocolAction<RequestType,ResponseType>
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.cas.flow.impl.AbstractCASProtocolAction<RequestType,ResponseType>
- Type Parameters:
RequestType
- requestResponseType
- response
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,ProfileAction
,Aware
,MessageSource
,MessageSourceAware
,Action
- Direct Known Subclasses:
AbstractOutgoingSamlMessageAction
,BuildAuthenticationContextAction
,BuildProxyChainAction
,BuildRelyingPartyContextAction
,BuildSAMLMetadataContextAction
,CheckProxyAuthorizationAction
,GrantProxyTicketAction
,GrantServiceTicketAction
,InitializeLoginAction
,InitializeProxyAction
,InitializeValidateAction
,PopulateProtocolErrorAction
,PrepareTicketValidationResponseAction
,ProcessSamlMessageAction
,PublishProtocolMessageAction
,UpdateIdPSessionWithSPSessionAction
,ValidateProxyCallbackAction
,ValidateRenewAction
,ValidateTicketAction
,WriteValidateResponseAction
public abstract class AbstractCASProtocolAction<RequestType,ResponseType>
extends AbstractProfileAction
Base class for CAS protocol actions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.Logger
Class logger.private final Function<ProfileRequestContext,
ProtocolContext<RequestType, ResponseType>> Looks up a CAS protocol context from IdP profile request context. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RequestType
Get the CAS request.protected ResponseType
Get the CAS response.protected Service
Get the CAS service.protected Ticket
Get the CAS ticket.protected ProtocolContext<RequestType,
ResponseType> Get the CAS protocol context.protected void
setCASRequest
(ProfileRequestContext prc, RequestType request) Set the CAS request.protected void
setCASResponse
(ProfileRequestContext prc, ResponseType response) Set the CAS response.protected void
setCASService
(ProfileRequestContext prc, Service service) Set the CAS service.protected void
setCASTicket
(ProfileRequestContext prc, Ticket ticket) Set the CAS ticket.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
doPreExecute, getActivationCondition, setActivationCondition
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doExecute, doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, setHttpServletRequest, setHttpServletRequestSupplier, setHttpServletResponse, setHttpServletResponseSupplier
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
protocolLookupFunction
@Nonnull private final Function<ProfileRequestContext,ProtocolContext<RequestType, protocolLookupFunctionResponseType>> Looks up a CAS protocol context from IdP profile request context.
-
-
Constructor Details
-
AbstractCASProtocolAction
public AbstractCASProtocolAction()Constructor.
-
-
Method Details
-
getCASRequest
@Nonnull protected RequestType getCASRequest(@Nullable ProfileRequestContext prc) throws EventException Get the CAS request.- Parameters:
prc
- profile request context- Returns:
- CAS request
- Throws:
EventException
- to propagate an event
-
setCASRequest
protected void setCASRequest(@Nullable ProfileRequestContext prc, @Nonnull RequestType request) throws EventException Set the CAS request.- Parameters:
prc
- profile request contextrequest
- CAS request- Throws:
EventException
- to propagate an event
-
getCASResponse
@Nonnull protected ResponseType getCASResponse(@Nullable ProfileRequestContext prc) throws EventException Get the CAS response.- Parameters:
prc
- profile request context- Returns:
- CAS response
- Throws:
EventException
- to propagate an event
-
setCASResponse
protected void setCASResponse(@Nullable ProfileRequestContext prc, @Nonnull ResponseType response) throws EventException Set the CAS response.- Parameters:
prc
- profile request contextresponse
- CAS response- Throws:
EventException
- to propagate an event
-
getCASTicket
Get the CAS ticket.- Parameters:
prc
- profile request context- Returns:
- CAS ticket
- Throws:
EventException
- to propagate an event
-
setCASTicket
protected void setCASTicket(@Nullable ProfileRequestContext prc, @Nonnull Ticket ticket) throws EventException Set the CAS ticket.- Parameters:
prc
- profile request contextticket
- CAS ticket- Throws:
EventException
- to propagate an event
-
getCASService
Get the CAS service.- Parameters:
prc
- profile request context- Returns:
- CAS service
- Throws:
EventException
- to propagate an event
-
setCASService
protected void setCASService(@Nullable ProfileRequestContext prc, @Nonnull Service service) throws EventException Set the CAS service.- Parameters:
prc
- profile request contextservice
- CAS service- Throws:
EventException
- to propagate an event
-
getProtocolContext
@Nonnull protected ProtocolContext<RequestType,ResponseType> getProtocolContext(@Nullable ProfileRequestContext prc) throws EventException Get the CAS protocol context.- Parameters:
prc
- profile request context- Returns:
- CAS protocol context
- Throws:
EventException
- to propagate an event
-