public class HTTPCS extends CertificateStore
| Constructor and Description |
|---|
HTTPCS()
Creates a
HTTPCS that uses default connection and
read timeout values. |
HTTPCS(ValidationInfo valInfo)
Creates a
HTTPCS that reads certificates from the
specified HTTP server. |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clears the URL Cache.
|
CertificateSet |
findCerts(GeneralName location)
Generalized version of findCerts.
|
CertificateSet |
findCerts(java.security.Principal dn)
This method is not supported by this class, as a DN has
nothing to do with an HTTP address.
|
void |
useCache(boolean useCache)
Setting which allows the URL cache to be turned on or off.
|
findpublic HTTPCS(ValidationInfo valInfo)
HTTPCS that reads certificates from the
specified HTTP server.valInfo - the validation info is used to obtain the User specified
connection and read timeout values (from the UserConfigSettings object)
If none is defined, the default values specified in HTTPConnection will be used.java.lang.NullPointerException - if valInfo is nullpublic HTTPCS()
HTTPCS that uses default connection and
read timeout values.public CertificateSet findCerts(java.security.Principal dn) throws CertificationException
This method always returns null.
findCerts in class CertificateStoredn - CertificationException - if there is a problem finding the certificates.public CertificateSet findCerts(GeneralName location) throws CertificationException
GeneralName.uniformResourceIdentifier
The type of data must be a uniformResourceIdentifier. It will be parsed for validity, and the Http location will be used to retrieve the data specified by the URL which this location represents.
findCerts in class CertificateStorelocation - a Uniform Resource Identifier (URI)CertificationException - if there is a problem finding the certificates.public void clearCache()
public void useCache(boolean useCache)
Note: The cache is only used by method findCerts(GeneralName). By
default the cache is turned on.
useCache - a boolean indicate whether cache should be used