org.opensaml.xml.security.x509
Class StaticPKIXValidationInformationResolver

java.lang.Object
  extended by org.opensaml.xml.security.x509.StaticPKIXValidationInformationResolver
All Implemented Interfaces:
Resolver<PKIXValidationInformation,CriteriaSet>, PKIXValidationInformationResolver

public class StaticPKIXValidationInformationResolver
extends Object
implements PKIXValidationInformationResolver

An implementation of PKIXValidationInformationResolver which always returns a static, fixed set of information.


Constructor Summary
StaticPKIXValidationInformationResolver(List<PKIXValidationInformation> info, Set<String> names)
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticPKIXValidationInformationResolver

public StaticPKIXValidationInformationResolver(List<PKIXValidationInformation> info,
                                               Set<String> names)
Constructor.

Parameters:
info - list of PKIX validation information to return
names - set of trusted names to return
Method Detail

resolveTrustedNames

public Set<String> resolveTrustedNames(CriteriaSet criteriaSet)
                                throws SecurityException,
                                       UnsupportedOperationException
Resolve a set of trusted names associated with the entity indicated by the criteria. This method is optional to implement.

Specified by:
resolveTrustedNames in interface PKIXValidationInformationResolver
Parameters:
criteriaSet - set of criteria used to determine or resolve the trusted names
Returns:
the set of certificate names trusted for an entity
Throws:
SecurityException - thrown if there is an error resolving the trusted names
UnsupportedOperationException - thrown if this optional method is not supported by the implementation

supportsTrustedNameResolution

public boolean supportsTrustedNameResolution()
Check whether resolution of trusted names is supported.

Specified by:
supportsTrustedNameResolution in interface PKIXValidationInformationResolver
Returns:
true if the implementation supports resolution of trusted names, otherwise false

resolve

public Iterable<PKIXValidationInformation> resolve(CriteriaSet criteria)
                                            throws SecurityException
Process the specified criteria and return the resulting instances the the product type which satisfy the criteria.

Specified by:
resolve in interface Resolver<PKIXValidationInformation,CriteriaSet>
Parameters:
criteria - the criteria to evaluate or process
Returns:
instances which satisfy the criteria
Throws:
SecurityException - thrown if there is an error processing the specified criteria

resolveSingle

public PKIXValidationInformation resolveSingle(CriteriaSet criteria)
                                        throws SecurityException
Process the specified criteria and return a single instance of the product type which satisfies the criteria. If multiple items satisfy the criteria, the choice of which single item to return is implementation-dependent.

Specified by:
resolveSingle in interface Resolver<PKIXValidationInformation,CriteriaSet>
Parameters:
criteria - the criteria to evaluate or process
Returns:
instances which satisfy the criteria
Throws:
SecurityException - thrown if there is an error processing the specified criteria


Copyright © 2006-2011 Internet2. All Rights Reserved.