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
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,ProtocolContext<RequestType,ResponseType>>protocolLookupFunctionLooks up a CAS protocol context from IdP profile request context.
-
Constructor Summary
Constructors Constructor Description AbstractCASProtocolAction()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RequestTypegetCASRequest(ProfileRequestContext prc)Get the CAS request.protected ResponseTypegetCASResponse(ProfileRequestContext prc)Get the CAS response.protected ServicegetCASService(ProfileRequestContext prc)Get the CAS service.protected TicketgetCASTicket(ProfileRequestContext prc)Get the CAS ticket.protected ProtocolContext<RequestType,ResponseType>getProtocolContext(ProfileRequestContext prc)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, 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 Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
protocolLookupFunction
@Nonnull private final Function<ProfileRequestContext,ProtocolContext<RequestType,ResponseType>> protocolLookupFunction
Looks up a CAS protocol context from IdP profile request context.
-
-
Method Detail
-
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 EventExceptionSet 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 EventExceptionSet the CAS response.- Parameters:
prc- profile request contextresponse- CAS response- Throws:
EventException- to propagate an event
-
getCASTicket
@Nonnull protected Ticket getCASTicket(ProfileRequestContext prc) throws EventException
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 EventExceptionSet the CAS ticket.- Parameters:
prc- profile request contextticket- CAS ticket- Throws:
EventException- to propagate an event
-
getCASService
@Nonnull protected Service getCASService(@Nullable ProfileRequestContext prc) throws EventException
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 EventExceptionSet 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
-
-