Package net.shibboleth.idp.cas.flow.impl
Class AbstractOutgoingSamlMessageAction
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<TicketValidationRequest,TicketValidationResponse>
net.shibboleth.idp.cas.flow.impl.AbstractOutgoingSamlMessageAction
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,ProfileAction
,Aware
,MessageSource
,MessageSourceAware
,Action
- Direct Known Subclasses:
BuildSamlValidationFailureMessageAction
,BuildSamlValidationSuccessMessageAction
public abstract class AbstractOutgoingSamlMessageAction
extends AbstractCASProtocolAction<TicketValidationRequest,TicketValidationResponse>
Base class for all actions that build SAML
Response
messages for output.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate QName
SOAP body needed for old/broken CAS clients.private QName
SOAP envelope needed for old/broken CAS clients.protected static final String
CAS namespace.private BindingDescriptor
Descriptor for outgoing SOAP binding. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Response
buildSamlResponse
(ProfileRequestContext profileRequestContext) Build the SAML response.protected void
doExecute
(ProfileRequestContext profileRequestContext) protected void
protected static <T extends SAMLObject>
TnewSAMLObject
(Class<T> type, QName elementName) Build the SAML object.void
setOutgoingBinding
(BindingDescriptor descriptor) Set theBindingDescriptor
describing the outbound binding to use.Methods inherited from class net.shibboleth.idp.cas.flow.impl.AbstractCASProtocolAction
getCASRequest, getCASResponse, getCASService, getCASTicket, getProtocolContext, setCASRequest, setCASResponse, setCASService, setCASTicket
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
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, 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
-
NAMESPACE
CAS namespace.- See Also:
-
envelopeName
SOAP envelope needed for old/broken CAS clients. -
bodyName
SOAP body needed for old/broken CAS clients. -
outgoingBinding
Descriptor for outgoing SOAP binding.
-
-
Constructor Details
-
AbstractOutgoingSamlMessageAction
public AbstractOutgoingSamlMessageAction()
-
-
Method Details
-
setOutgoingBinding
Set theBindingDescriptor
describing the outbound binding to use.- Parameters:
descriptor
- the descriptor- Since:
- 4.0.0
-
doInitialize
- Overrides:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-
newSAMLObject
Build the SAML object.- Type Parameters:
T
- type of SAML object- Parameters:
type
- the type of SAML object being builtelementName
- name of the- Returns:
- SAML object
-
doExecute
- Overrides:
doExecute
in classAbstractProfileAction
-
buildSamlResponse
@Nonnull protected abstract Response buildSamlResponse(@Nonnull ProfileRequestContext profileRequestContext) throws EventException Build the SAML response.- Parameters:
profileRequestContext
- profile request context- Returns:
- SAML response
- Throws:
EventException
- to signal an event
-