Class AttributeQueryProfileConfiguration
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
net.shibboleth.idp.saml.saml2.profile.config.impl.AttributeQueryProfileConfiguration
- All Implemented Interfaces:
InterceptorAwareProfileConfiguration,SAMLProfileConfiguration,AttributeQueryProfileConfiguration,AttributeResolvingProfileConfiguration,ConditionalProfileConfiguration,ProfileConfiguration,SAMLArtifactAwareProfileConfiguration,SAMLArtifactConsumerProfileConfiguration,SAMLAssertionProducingProfileConfiguration,SAMLProfileConfiguration,AttributeQueryProfileConfiguration,SAML2AssertionProducingProfileConfiguration,SAML2ProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class AttributeQueryProfileConfiguration
extends AbstractSAML2AssertionProducingProfileConfiguration
implements AttributeQueryProfileConfiguration
Configuration support for IdP SAML 2.0 attribute query profile.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,String> Lookup strategy for attribute recipient group ID.private Predicate<MessageContext>Predicate used to determine if SOAP-based requests should use client TLS.static final StringName of profile counter.private Predicate<ProfileRequestContext>Whether the FriendlyName attribute should be randomized when encoding Attributes.private Function<ProfileRequestContext,Collection<String>> Lookup strategy for requested IdP attribute names to pass into resolver.private Predicate<MessageContext>Predicate used to determine if SOAP-based requests should be signed.Fields inherited from interface net.shibboleth.saml.saml2.profile.config.AttributeQueryProfileConfiguration
PROFILE_IDFields 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
ConstructorsModifierConstructorDescriptionConstructor.protectedAttributeQueryProfileConfiguration(String profileId) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeRecipientGroupID(ProfileRequestContext profileRequestContext) getRequestedIdPAttributeNames(ProfileRequestContext profileRequestContext) booleanisClientTLSSOAPRequests(MessageContext messageContext) booleanisRandomizeFriendlyName(ProfileRequestContext profileRequestContext) Gets whether to randomize/perturb the FriendlyName attribute when encoding SAML 2.0 Attributes to enable probing of invalid behavior by relying parties.booleanisResolveAttributes(ProfileRequestContext profileRequestContext) booleanisSignSOAPRequests(MessageContext messageContext) voidsetAttributeRecipientGroupID(String groupID) Set the group of services for which attributes are being resolved.voidSet the lookup strategy for the group of services for which attributes are being resolved.voidsetClientTLSSOAPRequests(boolean flag) Set whether SOAP-based requests should use client TLS.voidsetClientTLSSOAPRequestsPredicate(Predicate<MessageContext> predicate) Set the predicate used to determine if SOAP-based requests should use client TLS.voidsetRandomizeFriendlyName(boolean flag) Set whether to randomize/perturb the FriendlyName attribute when encoding SAML 2.0 Attributes to enable probing of invalid behavior by relying parties.voidSet condition to determine whether to randomize/perturb the FriendlyName attribute when encoding SAML 2.0 Attributes to enable probing of invalid behavior by relying parties.voidSetIdPAttributenames to resolve (if resolving attributes).voidsetRequestedIdPAttributeNamesLookupStrategy(Function<ProfileRequestContext, Collection<String>> strategy) Lookup strategy forIdPAttributenames to resolve (if resolving attributes).voidsetSignSOAPRequests(boolean flag) Set whether SOAP-based requests should be signed.voidsetSignSOAPRequestsPredicate(Predicate<MessageContext> predicate) Set the predicate used to determine if SOAP-based requests should be signed.Methods inherited from class net.shibboleth.idp.saml.saml2.profile.config.impl.AbstractSAML2AssertionProducingProfileConfiguration
getAssertionAudiences, getAssertionLifetime, isEncryptAssertions, isEncryptAttributes, isIncludeConditionsNotBefore, isSignAssertions, setAdditionalAudiencesForAssertion, setAdditionalAudiencesForAssertionLookupStrategy, setAssertionAudiences, setAssertionAudiencesLookupStrategy, setAssertionLifetime, setAssertionLifetimeLookupStrategy, setEncryptAssertions, setEncryptAssertionsPredicate, setEncryptAttributes, setEncryptAttributesPredicate, setIncludeConditionsNotBefore, setIncludeConditionsNotBeforePredicate, setSignAssertions, setSignAssertionsPredicateMethods 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
-
PROFILE_COUNTER
Name of profile counter.- See Also:
-
randomizeFriendlyNamePredicate
Whether the FriendlyName attribute should be randomized when encoding Attributes. -
requestedIdPAttributeNamesLookupStrategy
@Nonnull private Function<ProfileRequestContext,Collection<String>> requestedIdPAttributeNamesLookupStrategyLookup strategy for requested IdP attribute names to pass into resolver. -
attributeRecipientGroupIDLookupStrategy
Lookup strategy for attribute recipient group ID. -
signSOAPRequestsPredicate
Predicate used to determine if SOAP-based requests should be signed. -
clientTLSSOAPRequestsPredicate
Predicate used to determine if SOAP-based requests should use client TLS.
-
-
Constructor Details
-
AttributeQueryProfileConfiguration
public AttributeQueryProfileConfiguration()Constructor. -
AttributeQueryProfileConfiguration
Constructor.- Parameters:
profileId- unique ID for this profile
-
-
Method Details
-
isRandomizeFriendlyName
Gets whether to randomize/perturb the FriendlyName attribute when encoding SAML 2.0 Attributes to enable probing of invalid behavior by relying parties.- Specified by:
isRandomizeFriendlyNamein interfaceAttributeQueryProfileConfiguration- Parameters:
profileRequestContext- current profile request context- Returns:
- true iff the FriendlyName should be randomized
-
setRandomizeFriendlyName
public void setRandomizeFriendlyName(boolean flag) Set whether to randomize/perturb the FriendlyName attribute when encoding SAML 2.0 Attributes to enable probing of invalid behavior by relying parties.- Parameters:
flag- flag to set- Since:
- 5.1.0
-
setRandomizeFriendlyNamePredicate
Set condition to determine whether to randomize/perturb the FriendlyName attribute when encoding SAML 2.0 Attributes to enable probing of invalid behavior by relying parties.- Parameters:
condition- condition to set- Since:
- 5.1.0
-
isResolveAttributes
- Specified by:
isResolveAttributesin interfaceAttributeResolvingProfileConfiguration
-
getRequestedIdPAttributeNames
@Nonnull @Unmodifiable @NotLive public Collection<String> getRequestedIdPAttributeNames(@Nullable ProfileRequestContext profileRequestContext) - Specified by:
getRequestedIdPAttributeNamesin interfaceAttributeResolvingProfileConfiguration
-
setRequestedIdPAttributeNames
SetIdPAttributenames to resolve (if resolving attributes).- Parameters:
names-IdPAttributenames to resolve- Since:
- 5.2.0
-
setRequestedIdPAttributeNamesLookupStrategy
public void setRequestedIdPAttributeNamesLookupStrategy(@Nonnull Function<ProfileRequestContext, Collection<String>> strategy) Lookup strategy forIdPAttributenames to resolve (if resolving attributes).- Parameters:
strategy- lookup strategy- Since:
- 5.2.0
-
getAttributeRecipientGroupID
@Nullable public String getAttributeRecipientGroupID(@Nullable ProfileRequestContext profileRequestContext) - Specified by:
getAttributeRecipientGroupIDin interfaceAttributeResolvingProfileConfiguration
-
setAttributeRecipientGroupID
Set the group of services for which attributes are being resolved.- Parameters:
groupID- group identifier- Since:
- 5.2.0
-
setAttributeRecipientGroupIDLookupStrategy
public void setAttributeRecipientGroupIDLookupStrategy(@Nonnull Function<ProfileRequestContext, String> strategy) Set the lookup strategy for the group of services for which attributes are being resolved.- Parameters:
strategy- lookup strategy- Since:
- 5.2.0
-
isSignSOAPRequests
- Specified by:
isSignSOAPRequestsin interfaceAttributeQueryProfileConfiguration
-
setSignSOAPRequests
public void setSignSOAPRequests(boolean flag) Set whether SOAP-based requests should be signed.- Parameters:
flag- flag to set- Since:
- 5.2.0
-
setSignSOAPRequestsPredicate
Set the predicate used to determine if SOAP-based requests should be signed.- Parameters:
predicate- the predicate- Since:
- 5.2.0
-
isClientTLSSOAPRequests
- Specified by:
isClientTLSSOAPRequestsin interfaceAttributeQueryProfileConfiguration
-
setClientTLSSOAPRequests
public void setClientTLSSOAPRequests(boolean flag) Set whether SOAP-based requests should use client TLS.- Parameters:
flag- flag to set- Since:
- 5.2.0
-
setClientTLSSOAPRequestsPredicate
Set the predicate used to determine if SOAP-based requests should use client TLS.- Parameters:
predicate- the predicate- Since:
- 5.2.0
-