public class StaticPKIXValidationInformationResolver extends Object implements PKIXValidationInformationResolver
PKIXValidationInformationResolver which always returns a static, fixed set of
information.| Modifier and Type | Field and Description |
|---|---|
private List<PKIXValidationInformation> |
pkixInfo
The PKIX validation information to return.
|
private Set<String> |
trustedNames
The set of trusted names to return.
|
| Constructor and Description |
|---|
StaticPKIXValidationInformationResolver(List<PKIXValidationInformation> info,
Set<String> names)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<PKIXValidationInformation> |
resolve(CriteriaSet criteria)
Process the specified criteria and return the resulting instances the 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.
|
private List<PKIXValidationInformation> pkixInfo
public StaticPKIXValidationInformationResolver(List<PKIXValidationInformation> info, Set<String> names)
info - list of PKIX validation information to returnnames - set of trusted names to returnpublic Set<String> resolveTrustedNames(CriteriaSet criteriaSet) throws SecurityException, UnsupportedOperationException
resolveTrustedNames in interface PKIXValidationInformationResolvercriteriaSet - set of criteria used to determine or resolve the trusted namesSecurityException - thrown if there is an error resolving the trusted namesUnsupportedOperationException - thrown if this optional method is not supported by the implementationpublic boolean supportsTrustedNameResolution()
supportsTrustedNameResolution in interface PKIXValidationInformationResolverpublic Iterable<PKIXValidationInformation> resolve(CriteriaSet criteria) throws SecurityException
resolve in interface Resolver<PKIXValidationInformation,CriteriaSet>criteria - the criteria to evaluate or processSecurityException - thrown if there is an error processing the specified criteriapublic PKIXValidationInformation resolveSingle(CriteriaSet criteria) throws SecurityException
resolveSingle in interface Resolver<PKIXValidationInformation,CriteriaSet>criteria - the criteria to evaluate or processSecurityException - thrown if there is an error processing the specified criteriaCopyright © 1999-2015. All Rights Reserved.