Class JDKFSTrustAnchorStore
java.lang.Object
eu.emi.security.authn.x509.helpers.trust.AbstractTrustAnchorStore
eu.emi.security.authn.x509.helpers.trust.TimedTrustAnchorStoreBase
eu.emi.security.authn.x509.helpers.trust.JDKInMemoryTrustAnchorStore
eu.emi.security.authn.x509.helpers.trust.JDKFSTrustAnchorStore
- All Implemented Interfaces:
TrustAnchorStore
Implementation of the
TrustAnchorStore which load JDK's KeyStore
from a file.-
Field Summary
FieldsFields inherited from class JDKInMemoryTrustAnchorStore
anchors, ca, keystoreFields inherited from class AbstractTrustAnchorStore
observers -
Constructor Summary
ConstructorsConstructorDescriptionJDKFSTrustAnchorStore(String truststorePath, char[] password, String type, Timer t, long updateInterval, ObserversHandler observers) -
Method Summary
Modifier and TypeMethodDescriptionprivate static KeyStorereadKeyStore(String truststorePath, char[] password, String type) voidupdate()implementation should update the contents of the trust anchor store.Methods inherited from class JDKInMemoryTrustAnchorStore
getKeyStore, getTrustAnchors, getTrustedCertificates, loadMethods inherited from class TimedTrustAnchorStoreBase
dispose, scheduleUpdate, setUpdateIntervalMethods inherited from class AbstractTrustAnchorStore
checkValidity, getUpdateInterval
-
Field Details
-
truststorePath
-
password
private final transient char[] password -
type
-
-
Constructor Details
-
JDKFSTrustAnchorStore
public JDKFSTrustAnchorStore(String truststorePath, char[] password, String type, Timer t, long updateInterval, ObserversHandler observers) throws KeyStoreException, IOException - Throws:
KeyStoreExceptionIOException
-
-
Method Details
-
readKeyStore
private static KeyStore readKeyStore(String truststorePath, char[] password, String type) throws IOException, KeyStoreException - Throws:
IOExceptionKeyStoreException
-
update
public void update()Description copied from class:TimedTrustAnchorStoreBaseimplementation should update the contents of the trust anchor store. It need not to bother with scheduling.- Overrides:
updatein classJDKInMemoryTrustAnchorStore
-
getTruststorePath
-