FileDocCategorySizeDatePackage
StorageResolver.javaAPI DocJava SE 6 API4463Tue Jun 10 00:23:02 BST 2008com.sun.org.apache.xml.internal.security.keys.storage

StorageResolver

public class StorageResolver extends Object
This class collects customized resolvers for Certificates.
author
$Author: raul $

Fields Summary
static Logger
log
{@link java.util.logging} logging facility
List
_storageResolvers
Field _storageResolvers
Iterator
_iterator
Field _iterator
Constructors Summary
public StorageResolver()
Constructor StorageResolver


         
     
public StorageResolver(StorageResolverSpi resolver)
Constructor StorageResolver

param
resolver

      this.add(resolver);
   
public StorageResolver(KeyStore keyStore)
Constructor StorageResolver

param
keyStore

      this.add(keyStore);
   
public StorageResolver(X509Certificate x509certificate)
Constructor StorageResolver

param
x509certificate

      this.add(x509certificate);
   
Methods Summary
public voidadd(com.sun.org.apache.xml.internal.security.keys.storage.StorageResolverSpi resolver)
Method addResolver

param
resolver


      this._storageResolvers.add(resolver);

      this._iterator = null;
   
public voidadd(java.security.KeyStore keyStore)
Method addKeyStore

param
keyStore


      try {
         this.add(new KeyStoreResolver(keyStore));
      } catch (StorageResolverException ex) {
         log.log(java.util.logging.Level.SEVERE, "Could not add KeyStore because of: ", ex);
      }
   
public voidadd(java.security.cert.X509Certificate x509certificate)
Method addCertificate

param
x509certificate

      this.add(new SingleCertificateResolver(x509certificate));
   
public java.util.IteratorgetIterator()
Method getIterator

return
the iterator for the resolvers.


      if (this._iterator == null) {
         this._iterator = new StorageResolverIterator(this._storageResolvers.iterator());
      }

      return this._iterator;
   
public booleanhasNext()
Method hasNext

return
true if there is more elements.


      if (this._iterator == null) {
         this._iterator = new StorageResolverIterator(this._storageResolvers.iterator());
      }

      return this._iterator.hasNext();
   
public java.security.cert.X509Certificatenext()
Method next

return
the next element

      return (X509Certificate) this._iterator.next();