public class StaticPKIXValidationInformationResolver extends Object implements PKIXValidationInformationResolver
PKIXValidationInformationResolver
which always returns a static, fixed set of
information.Constructor and Description |
---|
StaticPKIXValidationInformationResolver(List<PKIXValidationInformation> info,
Set<String> names)
Constructor.
|
StaticPKIXValidationInformationResolver(List<PKIXValidationInformation> info,
Set<String> names,
boolean supportDynamicNames)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Iterable<PKIXValidationInformation> |
resolve(CriteriaSet criteria)
Process the specified criteria and return the resulting instances of the product type
which satisfy the criteria.
|
PKIXValidationInformation |
resolveSingle(CriteriaSet criteria)
Process the specified criteria and return a single instance of the product type
which satisfies the criteria.
|
Set<String> |
resolveTrustedNames(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.
|
public StaticPKIXValidationInformationResolver(@Nullable List<PKIXValidationInformation> info, @Nullable Set<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 List<PKIXValidationInformation> info, @Nullable Set<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 Set<String> resolveTrustedNames(@Nullable CriteriaSet criteriaSet) throws ResolverException
resolveTrustedNames
in interface PKIXValidationInformationResolver
criteriaSet
- set of criteria used to determine or resolve the trusted namesResolverException
- thrown if there is an error resolving the trusted namespublic boolean supportsTrustedNameResolution()
supportsTrustedNameResolution
in interface PKIXValidationInformationResolver
@Nonnull public Iterable<PKIXValidationInformation> resolve(@Nullable CriteriaSet criteria) throws ResolverException
resolve
in interface Resolver<PKIXValidationInformation,CriteriaSet>
criteria
- the criteria to evaluate or processResolverException
- thrown if there is an error processing the specified criteria@Nullable public PKIXValidationInformation resolveSingle(@Nullable CriteriaSet criteria) throws ResolverException
resolveSingle
in interface Resolver<PKIXValidationInformation,CriteriaSet>
criteria
- the criteria to evaluate or processResolverException
- thrown if there is an error processing the specified criteriaCopyright © 2016 JBoss by Red Hat. All rights reserved.