Package net.shibboleth.sp.profile.impl
Class IssueDiscoveryRequest
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.sp.profile.AbstractAgentRequestAction
net.shibboleth.sp.profile.AbstractAgentAction
net.shibboleth.sp.profile.AbstractApplicationAction
net.shibboleth.sp.profile.impl.IssueDiscoveryRequest
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Generates a request to a discovery service per the protocol defined originally by us under
the SAML TC at OASIS.
While referred to as a "SAML" discovery mechanism, it is not SAML-specific or SAML-aware in any real sense and is just a generic, insecure, redirect-based mechanism to ask a web site to return a named parameter to a designated return location.
- Event:
EventIds.PROCEED_EVENT_ID,EventIds.INVALID_MESSAGE,EventIds.MESSAGE_PROC_ERROR- Precondition:
- The input message has been validated to ensure a
InitiatorConstants.DISCOVERY_RETURN_URLparameter is present.,AgentRequestContext.getOutput().isstruct()
,AgentRequestContext.getRemotedServletResponse() != null
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classDerives issuer value from application layer's default settings.private classDefault predicate aware of the two "known" protocols, would have to override for others. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe discovery URL to use.private DDFInput message.private StringValue for "entityID" paremeter in request.private Function<ProfileRequestContext,String> Strategy used to obtain the request issuer value.private final org.slf4j.LoggerClass logger.private Predicate<ProfileRequestContext>Condition to evaluate to determine passive use.private StringThe agent handler URL to return control to.Strategy used to create theStateDataContextto populate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidSet the strategy used to locate the issuer value to use.voidSets the strategy used to lookup theStateDataContext.Methods inherited from class net.shibboleth.sp.profile.AbstractApplicationAction
ensureApplication, getApplicationMethods inherited from class net.shibboleth.sp.profile.AbstractAgentAction
ensureAgent, getAgentMethods inherited from class net.shibboleth.sp.profile.AbstractAgentRequestAction
ensureAgentRequestContext, getAgentRequestContext, setAgentRequestContextLookupStrategyMethods 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
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, 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. -
stateDataContextLookupStrategy
Strategy used to create theStateDataContextto populate. -
issuerLookupStrategy
Strategy used to obtain the request issuer value. -
passiveCondition
Condition to evaluate to determine passive use. -
input
Input message. -
discoveryURL
The discovery URL to use. -
issuer
Value for "entityID" paremeter in request. -
returnURL
The agent handler URL to return control to.
-
-
Constructor Details
-
IssueDiscoveryRequest
public IssueDiscoveryRequest()Constructor.
-
-
Method Details
-
setStateDataContextLookupStrategy
public void setStateDataContextLookupStrategy(@Nonnull Function<ProfileRequestContext, StateDataContext> strategy) Sets the strategy used to lookup theStateDataContext.- Parameters:
strategy- lookup strategy
-
setIssuerLookupStrategy
Set the strategy used to locate the issuer value to use.- Parameters:
strategy- lookup strategy
-
doPreExecute
- Overrides:
doPreExecutein classAbstractApplicationAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-