public class StaticPKIXValidationInformationResolver extends java.lang.Object implements PKIXValidationInformationResolver
PKIXValidationInformationResolver which always returns a static, fixed set of
information.| Modifier and Type | Field and Description |
|---|---|
private java.util.List<PKIXValidationInformation> |
pkixInfo
The PKIX validation information to return.
|
private boolean |
supportDynamicTrustedNames
Flag indicating whether dynamic trusted names should be extracted from criteria set.
|
private java.util.Set<java.lang.String> |
trustedNames
The set of trusted names to return.
|
| Constructor and Description |
|---|
StaticPKIXValidationInformationResolver(java.util.List<PKIXValidationInformation> info,
java.util.Set<java.lang.String> names)
Constructor.
|
StaticPKIXValidationInformationResolver(java.util.List<PKIXValidationInformation> info,
java.util.Set<java.lang.String> names,
boolean supportDynamicNames)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<PKIXValidationInformation> |
resolve(net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria) |
PKIXValidationInformation |
resolveSingle(net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria) |
java.util.Set<java.lang.String> |
resolveTrustedNames(net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet)
Resolve a set of trusted names associated with the entity indicated by the criteria.
|
boolean |
supportsTrustedNameResolution()
Check whether resolution of trusted names is supported.
|
private final java.util.List<PKIXValidationInformation> pkixInfo
private final java.util.Set<java.lang.String> trustedNames
private boolean supportDynamicTrustedNames
public StaticPKIXValidationInformationResolver(@Nullable
java.util.List<PKIXValidationInformation> info,
@Nullable
java.util.Set<java.lang.String> names)
Dynamic trusted names will not be supported.
info - list of PKIX validation information to returnnames - set of trusted names to returnpublic StaticPKIXValidationInformationResolver(@Nullable
java.util.List<PKIXValidationInformation> info,
@Nullable
java.util.Set<java.lang.String> names,
boolean supportDynamicNames)
info - list of PKIX validation information to returnnames - set of trusted names to returnsupportDynamicNames - whether resolver should support dynamic extraction of trusted names
from an instance of TrustedNamesCriterion in the criteria set@Nonnull
public java.util.Set<java.lang.String> resolveTrustedNames(@Nullable
net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet)
throws net.shibboleth.utilities.java.support.resolver.ResolverException
resolveTrustedNames in interface PKIXValidationInformationResolvercriteriaSet - set of criteria used to determine or resolve the trusted namesnet.shibboleth.utilities.java.support.resolver.ResolverException - thrown if there is an error resolving the trusted namespublic boolean supportsTrustedNameResolution()
supportsTrustedNameResolution in interface PKIXValidationInformationResolver@Nonnull public java.lang.Iterable<PKIXValidationInformation> resolve(@Nullable net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria) throws net.shibboleth.utilities.java.support.resolver.ResolverException
resolve in interface net.shibboleth.utilities.java.support.resolver.Resolver<PKIXValidationInformation,net.shibboleth.utilities.java.support.resolver.CriteriaSet>net.shibboleth.utilities.java.support.resolver.ResolverException@Nullable public PKIXValidationInformation resolveSingle(@Nullable net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria) throws net.shibboleth.utilities.java.support.resolver.ResolverException
resolveSingle in interface net.shibboleth.utilities.java.support.resolver.Resolver<PKIXValidationInformation,net.shibboleth.utilities.java.support.resolver.CriteriaSet>net.shibboleth.utilities.java.support.resolver.ResolverException