public class KeystoreCertChainValidator extends PlainCRLValidator
KeyStore as a truststore.
The CRLs (Certificate Revocation Lists, if their handling is turned on) can be obtained from two sources: CA certificate extension defining CRL URL and additional list of URLs manually set by the class user. As an additional feature one may provide a simple paths to a local files, using wildcards. All files matching a wildcard are used.
This class is thread-safe.
X509CertChainValidator| Modifier and Type | Field and Description |
|---|---|
private JDKFSTrustAnchorStore |
store |
crlStoreImpl, revocationParameters, timerdisposed, listeners, observers, validator| Constructor and Description |
|---|
KeystoreCertChainValidator(java.lang.String truststorePath,
char[] password,
java.lang.String type,
long truststoreUpdateInterval)
Constructs a new validator instance with default additional settings
(see
ValidatorParamsExt.ValidatorParamsExt()). |
KeystoreCertChainValidator(java.lang.String truststorePath,
char[] password,
java.lang.String type,
long truststoreUpdateInterval,
ValidatorParamsExt params)
Constructs a new validator instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getTruststorePath()
Returns the current truststore path
|
long |
getTruststoreUpdateInterval()
Returns the interval between subsequent checks of the truststore file.
|
void |
setTruststoreUpdateInterval(long updateInterval)
Sets a new interval between subsequent checks of the truststore
file.
|
createCRLStore, dispose, getCrls, getCRLUpdateInterval, getRevocationParameters, setCrls, setCRLUpdateIntervaladdUpdateListener, addValidationListener, getProxySupport, getRevocationCheckingMode, getTrustedIssuers, init, isDisposed, notifyListeners, processErrorList, removeUpdateListener, removeValidationListener, validate, validate, validateprivate JDKFSTrustAnchorStore store
public KeystoreCertChainValidator(java.lang.String truststorePath,
char[] password,
java.lang.String type,
long truststoreUpdateInterval,
ValidatorParamsExt params)
throws java.io.IOException,
java.security.KeyStoreException
truststorePath - truststore pathpassword - truststore passwordtype - truststore type (JKS or PKCS12)truststoreUpdateInterval - how often (in ms) the truststore file should be
checked for updates. The file is reloaded only if its modification timestamp
has changed.params - common validator settings (revocation, initial listeners, proxy support, ...)java.io.IOException - if the truststore can not be readjava.security.KeyStoreException - if the truststore can not be parsed or
if password is incorrect.public KeystoreCertChainValidator(java.lang.String truststorePath,
char[] password,
java.lang.String type,
long truststoreUpdateInterval)
throws java.io.IOException,
java.security.KeyStoreException
ValidatorParamsExt.ValidatorParamsExt()).truststorePath - truststore pathpassword - truststore passwordtype - truststore type (JKS or PKCS12)truststoreUpdateInterval - how often (in ms) the truststore file should be
checked for updates. The file is reloaded only if its modification timestamp
has changed.java.io.IOException - if the truststore can not be readjava.security.KeyStoreException - if the truststore can not be parsed or
if password is incorrect.public long getTruststoreUpdateInterval()
public void setTruststoreUpdateInterval(long updateInterval)
updateInterval - the new interval to be set in millisecondspublic java.lang.String getTruststorePath()