Package net.shibboleth.idp.cas.flow.impl
Class AbstractOutgoingSamlMessageAction
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<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 QNameSOAP body needed for old/broken CAS clients.private QNameSOAP envelope needed for old/broken CAS clients.protected static final StringCAS namespace.private BindingDescriptorDescriptor for outgoing SOAP binding. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ResponsebuildSamlResponse(ProfileRequestContext profileRequestContext) Build the SAML response.protected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidprotected static <T extends SAMLObject>
TnewSAMLObject(Class<T> type, QName elementName) Build the SAML object.voidsetOutgoingBinding(BindingDescriptor descriptor) Set theBindingDescriptordescribing the outbound binding to use.Methods inherited from class net.shibboleth.idp.cas.flow.impl.AbstractCASProtocolAction
getCASRequest, getCASResponse, getCASService, getCASTicket, getProtocolContext, setCASRequest, setCASResponse, setCASService, setCASTicketMethods 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
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, 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
-
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 theBindingDescriptordescribing the outbound binding to use.- Parameters:
descriptor- the descriptor- Since:
- 4.0.0
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
newSAMLObject
@Nonnull protected static <T extends SAMLObject> T newSAMLObject(Class<T> type, @Nonnull QName elementName) 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:
doExecutein 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
-