Class AbstractSAML2AssertionConsumerProfileConfiguration
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.sp.profile.config.AbstractConditionalProfileConfiguration
net.shibboleth.sp.saml.saml2.profile.config.impl.AbstractSAML2ProfileConfiguration
net.shibboleth.sp.saml.saml2.profile.config.impl.AbstractSAML2ArtifactConsumerProfileConfiguration
net.shibboleth.sp.saml.saml2.profile.config.impl.AbstractSAML2AssertionConsumerProfileConfiguration
- All Implemented Interfaces:
ConditionalProfileConfiguration,ProfileConfiguration,SAMLArtifactConsumerProfileConfiguration,SAMLAssertionConsumingProfileConfiguration,SAMLProfileConfiguration,SAML2ProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
BrowserSSOProfileConfiguration
public abstract class AbstractSAML2AssertionConsumerProfileConfiguration
extends AbstractSAML2ArtifactConsumerProfileConfiguration
implements SAMLAssertionConsumingProfileConfiguration
Base class for SAML profile configurations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,Set<String>> Lookup function to supply additionalAudiences property.private Function<ProfileRequestContext,Duration> Lookup function to supply assertionLifetime property.private Predicate<ProfileRequestContext>Whether to require signed assertions.Fields inherited from interface net.shibboleth.profile.config.ProfileConfiguration
DEFAULT_DISALLOWED_FEATURES -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptiongetAssertionAudiences(ProfileRequestContext profileRequestContext) getAssertionLifetime(ProfileRequestContext profileRequestContext) booleanisRequireSignedAssertions(ProfileRequestContext profileRequestContext) voidsetAssertionAudiences(Collection<String> audiences) Set the set of audiences, in addition to our entityID, to validate the assertion against.voidSet a lookup strategy for the set of audiences, in addition to our entityID, to validate the assertion against.voidsetAssertionLifetime(Duration lifetime) Set the maximum lifetime of an assertion.voidSet a lookup strategy for the maximum lifetime of an assertion.voidsetRequireSignedAssertions(boolean flag) Set whether to require signed assertions.voidSet condition to determine whether to require signed assertions.Methods inherited from class net.shibboleth.sp.saml.saml2.profile.config.impl.AbstractSAML2ArtifactConsumerProfileConfiguration
isClientTLSArtifactRequests, isSignArtifactRequests, setClientTLSArtifactRequests, setClientTLSArtifactRequestsPredicate, setSignArtifactRequests, setSignArtifactRequestsPredicateMethods inherited from class net.shibboleth.sp.saml.saml2.profile.config.impl.AbstractSAML2ProfileConfiguration
getMessageHandler, isEncryptionOptional, isEncryptNameIDs, isIgnoreRequestSignatures, isSignRequests, isSignResponses, setEncryptionOptional, setEncryptionOptionalPredicate, setEncryptNameIDs, setEncryptNameIDsPredicate, setIgnoreRequestSignatures, setIgnoreRequestSignaturesPredicate, setMessageHandler, setMessageHandlerLookupStrategy, setSignRequests, setSignRequestsPredicate, setSignResponses, setSignResponsesPredicateMethods inherited from class net.shibboleth.sp.profile.config.AbstractConditionalProfileConfiguration
setDisallowedFeaturesMethods 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.profile.config.ProfileConfiguration
getDisallowedFeatures, getSecurityConfiguration, isFeatureDisallowedMethods inherited from interface net.shibboleth.saml.saml2.profile.config.SAML2ProfileConfiguration
isEncryptionOptional, isEncryptNameIDs, isIgnoreRequestSignaturesMethods inherited from interface net.shibboleth.saml.profile.config.SAMLProfileConfiguration
getMessageHandler, isSignRequests, isSignResponses
-
Field Details
-
requireSignedAssertionsPredicate
Whether to require signed assertions. -
assertionLifetimeLookupStrategy
Lookup function to supply assertionLifetime property. -
assertionAudiencesLookupStrategy
Lookup function to supply additionalAudiences property.
-
-
Constructor Details
-
AbstractSAML2AssertionConsumerProfileConfiguration
Constructor.- Parameters:
profileId- ID of the communication profile
-
-
Method Details
-
isRequireSignedAssertions
- Specified by:
isRequireSignedAssertionsin interfaceSAMLAssertionConsumingProfileConfiguration
-
setRequireSignedAssertions
public void setRequireSignedAssertions(boolean flag) Set whether to require signed assertions.- Parameters:
flag- flag to set
-
setRequireSignedAssertionsPredicate
public void setRequireSignedAssertionsPredicate(@Nonnull Predicate<ProfileRequestContext> condition) Set condition to determine whether to require signed assertions.- Parameters:
condition- condition to set
-
getAssertionLifetime
@Nullable @NonNegative public Duration getAssertionLifetime(@Nullable ProfileRequestContext profileRequestContext) - Specified by:
getAssertionLifetimein interfaceSAMLAssertionConsumingProfileConfiguration
-
setAssertionLifetime
Set the maximum 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 maximum lifetime of an assertion.- Parameters:
strategy- lookup strategy
-
getAssertionAudiences
@Nonnull @NonnullElements @NotLive public Set<String> getAssertionAudiences(@Nullable ProfileRequestContext profileRequestContext) - Specified by:
getAssertionAudiencesin interfaceSAMLAssertionConsumingProfileConfiguration
-
setAssertionAudiences
Set the set of audiences, in addition to our entityID, to validate the assertion against.- 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 our entityID, to validate the assertion against.- Parameters:
strategy- lookup strategy- Since:
- 4.0.0
-