Package net.shibboleth.idp.cas.flow.impl
Class AbstractCASProtocolAction<RequestType,ResponseType>
java.lang.Object
net.shibboleth.shared.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.LoggerClass 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 RequestTypeGet the CAS request.protected ResponseTypeGet the CAS response.protected ServiceGet the CAS service.protected TicketGet the CAS ticket.protected ProtocolContext<RequestType,ResponseType> Get the CAS protocol context.protected voidsetCASRequest(ProfileRequestContext prc, RequestType request) Set the CAS request.protected voidsetCASResponse(ProfileRequestContext prc, ResponseType response) Set the CAS response.protected voidsetCASService(ProfileRequestContext prc, Service service) Set the CAS service.protected voidsetCASTicket(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, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
doPreExecute, getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doExecute, doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.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
-