Class StaticPKIXValidationInformationResolver

  • All Implemented Interfaces:
    net.shibboleth.utilities.java.support.resolver.Resolver<org.opensaml.security.x509.PKIXValidationInformation,​net.shibboleth.utilities.java.support.resolver.CriteriaSet>, org.opensaml.security.x509.PKIXValidationInformationResolver

    public class StaticPKIXValidationInformationResolver
    extends Object
    implements org.opensaml.security.x509.PKIXValidationInformationResolver
    An implementation of PKIXValidationInformationResolver which always returns a static, fixed set of information.
    • Field Detail

      • pkixInfo

        private final List<org.opensaml.security.x509.PKIXValidationInformation> pkixInfo
        The PKIX validation information to return.
      • trustedNames

        private final Set<String> trustedNames
        The set of trusted names to return.
      • supportDynamicTrustedNames

        private boolean supportDynamicTrustedNames
        Flag indicating whether dynamic trusted names should be extracted from criteria set.
    • Constructor Detail

      • StaticPKIXValidationInformationResolver

        public StaticPKIXValidationInformationResolver​(@Nullable @ParameterName(name="info")
                                                       List<org.opensaml.security.x509.PKIXValidationInformation> info,
                                                       @Nullable @ParameterName(name="names")
                                                       Set<String> names)
        Constructor.

        Dynamic trusted names will not be supported.

        Parameters:
        info - list of PKIX validation information to return
        names - set of trusted names to return
      • StaticPKIXValidationInformationResolver

        public StaticPKIXValidationInformationResolver​(@Nullable @ParameterName(name="info")
                                                       List<org.opensaml.security.x509.PKIXValidationInformation> info,
                                                       @Nullable @ParameterName(name="names")
                                                       Set<String> names,
                                                       @ParameterName(name="supportDynamicNames")
                                                       boolean supportDynamicNames)
        Constructor.
        Parameters:
        info - list of PKIX validation information to return
        names - set of trusted names to return
        supportDynamicNames - whether resolver should support dynamic extraction of trusted names from an instance of TrustedNamesCriterion in the criteria set
    • Method Detail

      • resolveTrustedNames

        @Nonnull
        public Set<String> resolveTrustedNames​(@Nullable
                                               net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet)
                                        throws net.shibboleth.utilities.java.support.resolver.ResolverException
        Specified by:
        resolveTrustedNames in interface org.opensaml.security.x509.PKIXValidationInformationResolver
        Throws:
        net.shibboleth.utilities.java.support.resolver.ResolverException
      • supportsTrustedNameResolution

        public boolean supportsTrustedNameResolution()
        Specified by:
        supportsTrustedNameResolution in interface org.opensaml.security.x509.PKIXValidationInformationResolver
      • resolve

        @Nonnull
        public Iterable<org.opensaml.security.x509.PKIXValidationInformation> resolve​(@Nullable
                                                                                      net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria)
                                                                               throws net.shibboleth.utilities.java.support.resolver.ResolverException
        Specified by:
        resolve in interface net.shibboleth.utilities.java.support.resolver.Resolver<org.opensaml.security.x509.PKIXValidationInformation,​net.shibboleth.utilities.java.support.resolver.CriteriaSet>
        Throws:
        net.shibboleth.utilities.java.support.resolver.ResolverException
      • resolveSingle

        @Nullable
        public org.opensaml.security.x509.PKIXValidationInformation resolveSingle​(@Nullable
                                                                                  net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria)
                                                                           throws net.shibboleth.utilities.java.support.resolver.ResolverException
        Specified by:
        resolveSingle in interface net.shibboleth.utilities.java.support.resolver.Resolver<org.opensaml.security.x509.PKIXValidationInformation,​net.shibboleth.utilities.java.support.resolver.CriteriaSet>
        Throws:
        net.shibboleth.utilities.java.support.resolver.ResolverException