public class CACrossCertCS extends CertificateStore
| Constructor and Description |
|---|
CACrossCertCS(ValidationInfo valInfo)
Creates a certificate store that contains cross certificates.
|
| 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)
Returns all certificates for the entity specified in
dn. |
void |
useCache(boolean useCache)
Setting which allows the URL cache to be turned on or off.
|
findpublic CACrossCertCS(ValidationInfo valInfo)
valInfo - the validation info that links to the ldap directory to read
the cross certificates fromjava.lang.NullPointerException - if valInfo is nullpublic CertificateSet findCerts(java.security.Principal dn) throws CertificationException
dn. If
no certificate is found, this method returns null.findCerts in class CertificateStoredn - the distinguished name of the key ownerdn or null if no
certificates for dn are found in this
CertificateStoreCertificationException - if there was an error communicating with the Directory.public CertificateSet findCerts(GeneralName location) throws CertificationException
GeneralName.uniformResourceIdentifier
or a GeneralName.directoryName structure.
If the type of data is a uniformResourceIdentifier, it will be parsed using the
LdapURL class and the DN and directory information will be used to
retrieve the data specified by the LdapURL.
If the type of data is a directoryName, this method will pass the information to
findCerts(Principal) to retrieve the data specified by the directoryName.
findCerts in class CertificateStorelocation - A Uniform Resource Identifier (URI) or directoryName.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