Class AffiliationNameIDPolicyPredicate
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.saml.common.profile.logic.AbstractNameIDPolicyPredicate
-
- org.opensaml.saml.common.profile.logic.DefaultNameIDPolicyPredicate
-
- org.opensaml.saml.common.profile.logic.AffiliationNameIDPolicyPredicate
-
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,Component,DestructableComponent,InitializableComponent,Predicate<ProfileRequestContext>
public class AffiliationNameIDPolicyPredicate extends DefaultNameIDPolicyPredicate
Evaluates name identifier data and enforces a default policy over its content.If an SPNameQualifier value is non-null, the value must match the request issuer, or must be an identifier for a SAML
AffiliationDescriptorthat contains the issuer.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private MetadataResolvermetadataResolverMetadata resolver to use.
-
Constructor Summary
Constructors Constructor Description AffiliationNameIDPolicyPredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoApply(String requesterId, String responderId, String format, String nameQualifier, String spNameQualifier)Apply the predicate to the request.protected voiddoInitialize()voidsetMetadataResolver(MetadataResolver resolver)Set the metadata resolver to use.-
Methods inherited from class org.opensaml.saml.common.profile.logic.AbstractNameIDPolicyPredicate
setFormats, setObjectLookupStrategy, setRequesterIdLookupStrategy, setResponderIdLookupStrategy, test
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
metadataResolver
@NonnullAfterInit private MetadataResolver metadataResolver
Metadata resolver to use.
-
-
Method Detail
-
setMetadataResolver
public void setMetadataResolver(@Nonnull MetadataResolver resolver)Set the metadata resolver to use.- Parameters:
resolver- resolver to use
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractNameIDPolicyPredicate- Throws:
ComponentInitializationException
-
doApply
protected boolean doApply(@Nullable String requesterId, @Nullable String responderId, @Nullable String format, @Nullable String nameQualifier, @Nullable String spNameQualifier)Apply the predicate to the request.- Overrides:
doApplyin classDefaultNameIDPolicyPredicate- Parameters:
requesterId- the requesterresponderId- the responderformat- format of identifiernameQualifier- the NameQualifierspNameQualifier- the SPNameQualifier- Returns:
- true iff the combination of inputs satisfies a policy
-
-