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.
|
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.
|
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 PKIXValidationInformationResolver
criteriaSet
- 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 PKIXValidationInformationResolver
public 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 © 2018 JBoss by Red Hat. All rights reserved.