/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
/**
* This {@link StorageResolverSpi} makes all raw (binary) {@link X509Certificate}s
* which reside as files in a single directory available to the {@link com.sun.org.apache.xml.internal.security.keys.storage.StorageResolver}.
*
* @author $Author: mullan $
*/
/** {@link java.util.logging} logging facility */
CertsInFilesystemDirectoryResolver.class.getName());
/** Field _merlinsCertificatesDir */
/** Field _certs */
/** Field _iterator */
/**
*
*
* @param directoryName
* @throws StorageResolverException
*/
throws StorageResolverException {
this._merlinsCertificatesDir = directoryName;
this.readCertsFromHarddrive();
}
/**
* Method readCertsFromHarddrive
*
* @throws StorageResolverException
*/
}
}
try {
} catch (CertificateException ex) {
}
throw new StorageResolverException("empty");
}
boolean added = false;
try {
//add to ArrayList
added = true;
} catch (FileNotFoundException ex) {
} catch (IOException ex) {
} catch (CertificateNotYetValidException ex) {
} catch (CertificateExpiredException ex) {
} catch (CertificateException ex) {
}
if (added) {
}
}
}
/** @inheritDoc */
return this._iterator;
}
/**
* Class FilesystemIterator
*
* @author $Author: mullan $
* @version $Revision: 1.5 $
*/
/** Field _certs */
/** Field _i */
int _i;
/**
* Constructor FilesystemIterator
*
* @param certs
*/
this._i = 0;
}
/** @inheritDoc */
public boolean hasNext() {
}
/** @inheritDoc */
}
/**
* Method remove
*
*/
public void remove() {
throw new UnsupportedOperationException(
"Can't remove keys from KeyStore");
}
}
/**
* Method main
*
* @param unused
* @throws Exception
*/
byte[] ski =
}
}
}