|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.emi.security.authn.x509.helpers.pkipath.AbstractValidator
eu.emi.security.authn.x509.helpers.pkipath.PlainCRLValidator
eu.emi.security.authn.x509.impl.KeystoreCertChainValidator
public class KeystoreCertChainValidator
The certificate validator which uses Java 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
Field Summary |
---|
Fields inherited from class eu.emi.security.authn.x509.helpers.pkipath.PlainCRLValidator |
---|
crlStoreImpl, revocationParameters, timer |
Fields inherited from class eu.emi.security.authn.x509.helpers.pkipath.AbstractValidator |
---|
disposed, listeners, observers, validator |
Constructor Summary | |
---|---|
KeystoreCertChainValidator(String truststorePath,
char[] password,
String type,
long truststoreUpdateInterval)
Constructs a new validator instance with default additional settings (see ValidatorParamsExt.ValidatorParamsExt() ). |
|
KeystoreCertChainValidator(String truststorePath,
char[] password,
String type,
long truststoreUpdateInterval,
ValidatorParamsExt params)
Constructs a new validator instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class eu.emi.security.authn.x509.helpers.pkipath.PlainCRLValidator |
---|
createCRLStore, dispose, getCrls, getCRLUpdateInterval, getRevocationParameters, setCrls, setCRLUpdateInterval |
Methods inherited from class eu.emi.security.authn.x509.helpers.pkipath.AbstractValidator |
---|
addUpdateListener, addValidationListener, getProxySupport, getRevocationCheckingMode, getTrustedIssuers, init, notifyListeners, processErrorList, removeUpdateListener, removeValidationListener, validate, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeystoreCertChainValidator(String truststorePath, char[] password, String type, long truststoreUpdateInterval, ValidatorParamsExt params) throws IOException, 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, ...)
IOException
- if the truststore can not be read
KeyStoreException
- if the truststore can not be parsed or
if password is incorrect.public KeystoreCertChainValidator(String truststorePath, char[] password, String type, long truststoreUpdateInterval) throws IOException, 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.
IOException
- if the truststore can not be read
KeyStoreException
- if the truststore can not be parsed or
if password is incorrect.Method Detail |
---|
public long getTruststoreUpdateInterval()
public void setTruststoreUpdateInterval(long updateInterval)
updateInterval
- the new interval to be set in millisecondspublic String getTruststorePath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |