Class AffiliationNameIDPolicyPredicate

  • All Implemented Interfaces:
    Predicate<org.opensaml.profile.context.ProfileRequestContext>, net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent, net.shibboleth.utilities.java.support.logic.Predicate<org.opensaml.profile.context.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 AffiliationDescriptor that contains the issuer.

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • metadataResolver

        @NonnullAfterInit
        private MetadataResolver metadataResolver
        Metadata resolver to use.
    • Constructor Detail

      • AffiliationNameIDPolicyPredicate

        public AffiliationNameIDPolicyPredicate()
    • 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 net.shibboleth.utilities.java.support.component.ComponentInitializationException
        Overrides:
        doInitialize in class AbstractNameIDPolicyPredicate
        Throws:
        net.shibboleth.utilities.java.support.component.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:
        doApply in class DefaultNameIDPolicyPredicate
        Parameters:
        requesterId - the requester
        responderId - the responder
        format - format of identifier
        nameQualifier - the NameQualifier
        spNameQualifier - the SPNameQualifier
        Returns:
        true iff the combination of inputs satisfies a policy