Class AbstractSAMLProfileConfiguration
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.profile.config.AbstractProfileConfiguration
net.shibboleth.profile.config.AbstractConditionalProfileConfiguration
net.shibboleth.idp.profile.config.AbstractInterceptorAwareProfileConfiguration
net.shibboleth.idp.saml.profile.config.impl.AbstractSAMLProfileConfiguration
- All Implemented Interfaces:
InterceptorAwareProfileConfiguration,SAMLProfileConfiguration,ConditionalProfileConfiguration,ProfileConfiguration,SAMLProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
AbstractSAML1ArtifactAwareProfileConfiguration,AbstractSAML2ProfileConfiguration,ArtifactResolutionProfileConfiguration
public abstract class AbstractSAMLProfileConfiguration
extends AbstractInterceptorAwareProfileConfiguration
implements SAMLProfileConfiguration
Base class for SAML profile configurations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<MessageContext,Function<MessageContext, Exception>> Lookup strategy for message decorator.private Predicate<ProfileRequestContext>Predicate used to determine if the generated request should be signed.private Predicate<ProfileRequestContext>Predicate used to determine if the generated response should be signed.Fields inherited from interface net.shibboleth.profile.config.ProfileConfiguration
DEFAULT_DISALLOWED_FEATURES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMessageHandler(MessageContext messageContext) booleanisSignRequests(ProfileRequestContext profileRequestContext) booleanisSignResponses(ProfileRequestContext profileRequestContext) voidsetMessageDecorator(Function<MessageContext, Exception> handler) Deprecated, for removal: This API element is subject to removal in a future version.voidsetMessageHandler(Function<MessageContext, Exception> handler) Set a handler for the SAML message.voidsetMessageHandlerLookupStrategy(Function<MessageContext, Function<MessageContext, Exception>> strategy) Set a lookup strategy for the handler for the SAML message.voidsetSignRequests(boolean flag) Set whether generated requests should be signed.voidsetSignRequestsPredicate(Predicate<ProfileRequestContext> predicate) Set the predicate used to determine if generated requests should be signed.voidsetSignResponses(boolean flag) Set whether generated responses should be signed.voidsetSignResponsesPredicate(Predicate<ProfileRequestContext> predicate) Set the predicate used to determine if generated responses should be signed.Methods inherited from class net.shibboleth.idp.profile.config.AbstractInterceptorAwareProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlows, setInboundInterceptorFlows, setInboundInterceptorFlowsLookupStrategy, setOutboundInterceptorFlows, setOutboundInterceptorFlowsLookupStrategyMethods inherited from class net.shibboleth.profile.config.AbstractConditionalProfileConfiguration
getActivationCondition, setActivationConditionMethods inherited from class net.shibboleth.profile.config.AbstractProfileConfiguration
equals, getDisallowedFeatures, getSecurityConfiguration, hashCode, isFeatureDisallowed, setDisallowedFeatures, setDisallowedFeaturesLookupStrategy, setSecurityConfiguration, setSecurityConfigurationLookupStrategyMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.idp.profile.config.InterceptorAwareProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlowsMethods inherited from interface net.shibboleth.profile.config.ProfileConfiguration
getDisallowedFeatures, getSecurityConfiguration, isFeatureDisallowed
-
Field Details
-
signRequestsPredicate
Predicate used to determine if the generated request should be signed. Default returns false. -
signResponsesPredicate
Predicate used to determine if the generated response should be signed. Default returns false. -
messageHandlerLookupStrategy
@Nonnull private Function<MessageContext,Function<MessageContext, messageHandlerLookupStrategyException>> Lookup strategy for message decorator.
-
-
Constructor Details
-
AbstractSAMLProfileConfiguration
Constructor.- Parameters:
profileId- ID of the communication profile
-
-
Method Details
-
isSignRequests
- Specified by:
isSignRequestsin interfaceSAMLProfileConfiguration
-
setSignRequests
public void setSignRequests(boolean flag) Set whether generated requests should be signed.- Parameters:
flag- flag to set
-
setSignRequestsPredicate
Set the predicate used to determine if generated requests should be signed.- Parameters:
predicate- predicate used to determine if generated requests should be signed- Since:
- 4.0.0
-
isSignResponses
- Specified by:
isSignResponsesin interfaceSAMLProfileConfiguration
-
setSignResponses
public void setSignResponses(boolean flag) Set whether generated responses should be signed.- Parameters:
flag- flag to set
-
setSignResponsesPredicate
Set the predicate used to determine if generated responses should be signed.- Parameters:
predicate- predicate used to determine if generated responses should be signed- Since:
- 4.0.0
-
getMessageHandler
@Nullable public Function<MessageContext,Exception> getMessageHandler(@Nullable MessageContext messageContext) - Specified by:
getMessageHandlerin interfaceSAMLProfileConfiguration
-
setMessageHandler
Set a handler for the SAML message.- Parameters:
handler- message handler- Since:
- 5.0.0
-
setMessageDecorator
@Deprecated(forRemoval=true, since="5.0.0") public void setMessageDecorator(@Nullable Function<MessageContext, Exception> handler) Deprecated, for removal: This API element is subject to removal in a future version.Set a handler for the SAML message.- Parameters:
handler- message handler- Since:
- 5.0.0
-
setMessageHandlerLookupStrategy
public void setMessageHandlerLookupStrategy(@Nonnull Function<MessageContext, Function<MessageContext, Exception>> strategy) Set a lookup strategy for the handler for the SAML message.- Parameters:
strategy- lookup strategy- Since:
- 5.0.0
-