Class AbstractSAML1AssertionProducingProfileConfiguration
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
net.shibboleth.idp.saml.saml1.profile.config.impl.AbstractSAML1ArtifactAwareProfileConfiguration
net.shibboleth.idp.saml.saml1.profile.config.impl.AbstractSAML1AssertionProducingProfileConfiguration
- All Implemented Interfaces:
InterceptorAwareProfileConfiguration,SAMLProfileConfiguration,ConditionalProfileConfiguration,ProfileConfiguration,SAMLArtifactAwareProfileConfiguration,SAMLAssertionProducingProfileConfiguration,SAMLProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
AttributeQueryProfileConfiguration,BrowserSSOProfileConfiguration
public abstract class AbstractSAML1AssertionProducingProfileConfiguration
extends AbstractSAML1ArtifactAwareProfileConfiguration
implements SAMLAssertionProducingProfileConfiguration
Base class for IdP SAML 1.x profile configurations that produce assertions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,Set<String>> Lookup function to supply assertionAudiences property.private Function<ProfileRequestContext,Duration> Lookup function to supply assertionLifetime property.private Predicate<ProfileRequestContext>Predicate used to determine whether to include a NotBefore attribute in the Conditions of generated assertions.private Predicate<ProfileRequestContext>Predicate used to determine whether to sign assertions.Fields inherited from interface net.shibboleth.profile.config.ProfileConfiguration
DEFAULT_DISALLOWED_FEATURESFields inherited from interface net.shibboleth.saml.profile.config.SAMLAssertionProducingProfileConfiguration
DEFAULT_ASSERTION_LIFETIME -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptiongetAssertionAudiences(ProfileRequestContext profileRequestContext) getAssertionLifetime(ProfileRequestContext profileRequestContext) booleanisIncludeConditionsNotBefore(ProfileRequestContext profileRequestContext) booleanisSignAssertions(ProfileRequestContext profileRequestContext) voidsetAdditionalAudiencesForAssertion(Collection<String> audiences) Deprecated, for removal: This API element is subject to removal in a future version.voidsetAdditionalAudiencesForAssertionLookupStrategy(Function<ProfileRequestContext, Set<String>> strategy) Deprecated, for removal: This API element is subject to removal in a future version.voidsetAssertionAudiences(Collection<String> audiences) Set the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the assertion, with which an assertion may be shared.voidSet a lookup strategy for the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the assertion, with which an assertion may be shared.voidsetAssertionLifetime(Duration lifetime) Set the lifetime of an assertion.voidSet a lookup strategy for the lifetime of an assertion.voidsetIncludeConditionsNotBefore(boolean flag) Set whether to include a NotBefore attribute in the Conditions of generated assertions.voidSet a condition to determine whether to include a NotBefore attribute in the Conditions of generated assertions.voidsetSignAssertions(boolean flag) Set whether generated assertions should be signed.voidsetSignAssertionsPredicate(Predicate<ProfileRequestContext> predicate) Set the predicate used to determine if generated assertions should be signed.Methods inherited from class net.shibboleth.idp.saml.saml1.profile.config.impl.AbstractSAML1ArtifactAwareProfileConfiguration
getArtifactConfiguration, setArtifactConfiguration, setArtifactConfigurationLookupStrategyMethods inherited from class net.shibboleth.idp.saml.profile.config.impl.AbstractSAMLProfileConfiguration
getMessageHandler, isSignRequests, isSignResponses, setMessageDecorator, setMessageHandler, setMessageHandlerLookupStrategy, setSignRequests, setSignRequestsPredicate, setSignResponses, setSignResponsesPredicateMethods 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, isFeatureDisallowedMethods inherited from interface net.shibboleth.saml.profile.config.SAMLProfileConfiguration
getMessageHandler, isSignRequests, isSignResponses
-
Field Details
-
signAssertionsPredicate
Predicate used to determine whether to sign assertions. -
includeNotBeforePredicate
Predicate used to determine whether to include a NotBefore attribute in the Conditions of generated assertions. -
assertionLifetimeLookupStrategy
Lookup function to supply assertionLifetime property. -
additionalAudiencesLookupStrategy
Lookup function to supply assertionAudiences property.
-
-
Constructor Details
-
AbstractSAML1AssertionProducingProfileConfiguration
Constructor.- Parameters:
profileId- ID of the communication profile, never null or empty
-
-
Method Details
-
isSignAssertions
- Specified by:
isSignAssertionsin interfaceSAMLAssertionProducingProfileConfiguration
-
setSignAssertions
public void setSignAssertions(boolean flag) Set whether generated assertions should be signed.- Parameters:
flag- flag to set
-
setSignAssertionsPredicate
Set the predicate used to determine if generated assertions should be signed.- Parameters:
predicate- predicate used to determine if generated assertions should be signed
-
isIncludeConditionsNotBefore
- Specified by:
isIncludeConditionsNotBeforein interfaceSAMLAssertionProducingProfileConfiguration
-
setIncludeConditionsNotBefore
public void setIncludeConditionsNotBefore(boolean flag) Set whether to include a NotBefore attribute in the Conditions of generated assertions.- Parameters:
flag- flag to set
-
setIncludeConditionsNotBeforePredicate
public void setIncludeConditionsNotBeforePredicate(@Nonnull Predicate<ProfileRequestContext> condition) Set a condition to determine whether to include a NotBefore attribute in the Conditions of generated assertions.- Parameters:
condition- lookup strategy
-
getAssertionLifetime
@Nonnull public Duration getAssertionLifetime(@Nullable ProfileRequestContext profileRequestContext) - Specified by:
getAssertionLifetimein interfaceSAMLAssertionProducingProfileConfiguration
-
setAssertionLifetime
Set the lifetime of an assertion.- Parameters:
lifetime- lifetime of an assertion
-
setAssertionLifetimeLookupStrategy
public void setAssertionLifetimeLookupStrategy(@Nonnull Function<ProfileRequestContext, Duration> strategy) Set a lookup strategy for the lifetime of an assertion.- Parameters:
strategy- lookup strategy
-
getAssertionAudiences
@Nonnull @Unmodifiable @NotLive public Set<String> getAssertionAudiences(@Nullable ProfileRequestContext profileRequestContext) - Specified by:
getAssertionAudiencesin interfaceSAMLAssertionProducingProfileConfiguration
-
setAdditionalAudiencesForAssertion
@Deprecated(since="5.0.0", forRemoval=true) public void setAdditionalAudiencesForAssertion(@Nullable Collection<String> audiences) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, replacement issetAssertionAudiences(Collection).- Parameters:
audiences- the additional audiences
-
setAdditionalAudiencesForAssertionLookupStrategy
@Deprecated(since="5.0.0", forRemoval=true) public void setAdditionalAudiencesForAssertionLookupStrategy(@Nonnull Function<ProfileRequestContext, Set<String>> strategy) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, replacement issetAssertionAudiencesLookupStrategy(Function).- Parameters:
strategy- lookup strategy
-
setAssertionAudiences
Set the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the assertion, with which an assertion may be shared.- Parameters:
audiences- the additional audiences
-
setAssertionAudiencesLookupStrategy
public void setAssertionAudiencesLookupStrategy(@Nonnull Function<ProfileRequestContext, Set<String>> strategy) Set a lookup strategy for the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the assertion, with which an assertion may be shared.- Parameters:
strategy- lookup strategy
-