Class AbstractSAML2AssertionProducingProfileConfiguration
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.saml2.profile.config.impl.AbstractSAML2ProfileConfiguration
net.shibboleth.idp.saml.saml2.profile.config.impl.AbstractSAML2ArtifactAwareProfileConfiguration
net.shibboleth.idp.saml.saml2.profile.config.impl.AbstractSAML2AssertionProducingProfileConfiguration
- All Implemented Interfaces:
InterceptorAwareProfileConfiguration,SAMLProfileConfiguration,ConditionalProfileConfiguration,ProfileConfiguration,SAMLArtifactAwareProfileConfiguration,SAMLArtifactConsumerProfileConfiguration,SAMLAssertionProducingProfileConfiguration,SAMLProfileConfiguration,SAML2AssertionProducingProfileConfiguration,SAML2ProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
AttributeQueryProfileConfiguration,BrowserSSOProfileConfiguration
public abstract class AbstractSAML2AssertionProducingProfileConfiguration
extends AbstractSAML2ArtifactAwareProfileConfiguration
implements SAML2AssertionProducingProfileConfiguration
Base class for IdP SAML 2.0 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 if assertions should be encrypted.private Predicate<ProfileRequestContext>Predicate used to determine if attributes should be encrypted.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) booleanisEncryptAssertions(ProfileRequestContext profileRequestContext) booleanisEncryptAttributes(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.voidsetEncryptAssertions(boolean flag) Set whether assertions should be encrypted.voidSet the predicate used to determine if assertions should be encrypted.voidsetEncryptAttributes(boolean flag) Set whether attributes should be encrypted.voidSet the predicate used to determine if attributes should be encrypted.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.saml2.profile.config.impl.AbstractSAML2ArtifactAwareProfileConfiguration
getArtifactConfiguration, isClientTLSArtifactRequests, isSignArtifactRequests, setArtifactConfiguration, setArtifactConfigurationLookupStrategy, setClientTLSArtifactRequests, setClientTLSArtifactRequestsPredicate, setSignArtifactRequests, setSignArtifactRequestsPredicateMethods inherited from class net.shibboleth.idp.saml.saml2.profile.config.impl.AbstractSAML2ProfileConfiguration
isEncryptionOptional, isEncryptNameIDs, isIgnoreRequestSignatures, setEncryptionOptional, setEncryptionOptionalPredicate, setEncryptNameIDs, setEncryptNameIDsPredicate, setIgnoreRequestSignatures, setIgnoreRequestSignaturesPredicateMethods 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.saml2.profile.config.SAML2ProfileConfiguration
isEncryptionOptional, isEncryptNameIDs, isIgnoreRequestSignaturesMethods 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. -
encryptAssertionsPredicate
Predicate used to determine if assertions should be encrypted. -
encryptAttributesPredicate
Predicate used to determine if attributes should be encrypted.
-
-
Constructor Details
-
AbstractSAML2AssertionProducingProfileConfiguration
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
-
isEncryptAssertions
- Specified by:
isEncryptAssertionsin interfaceSAML2AssertionProducingProfileConfiguration
-
setEncryptAssertions
public void setEncryptAssertions(boolean flag) Set whether assertions should be encrypted.- Parameters:
flag- flag to set
-
setEncryptAssertionsPredicate
Set the predicate used to determine if assertions should be encrypted.- Parameters:
predicate- predicate used to determine if assertions should be encrypted- Since:
- 4.0.0
-
isEncryptAttributes
- Specified by:
isEncryptAttributesin interfaceSAML2AssertionProducingProfileConfiguration
-
setEncryptAttributes
public void setEncryptAttributes(boolean flag) Set whether attributes should be encrypted.- Parameters:
flag- flag to set
-
setEncryptAttributesPredicate
Set the predicate used to determine if attributes should be encrypted.- Parameters:
predicate- predicate used to determine if attributes should be encrypted- Since:
- 4.0.0
-