Class JDKInMemoryTrustAnchorStore
- 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
-
- All Implemented Interfaces:
TrustAnchorStore
- Direct Known Subclasses:
JDKFSTrustAnchorStore
public class JDKInMemoryTrustAnchorStore extends TimedTrustAnchorStoreBase
Implementation of theTrustAnchorStorewhich uses JDK'sKeyStoreas a in-memory storage.- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<TrustAnchor>anchorsprotected X509Certificate[]caprotected KeyStorekeystore-
Fields inherited from class eu.emi.security.authn.x509.helpers.trust.AbstractTrustAnchorStore
observers
-
-
Constructor Summary
Constructors Modifier Constructor Description JDKInMemoryTrustAnchorStore(KeyStore ks)protectedJDKInMemoryTrustAnchorStore(KeyStore ks, Timer timer, long updateInterval, ObserversHandler observers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyStoregetKeyStore()Set<TrustAnchor>getTrustAnchors()X509Certificate[]getTrustedCertificates()protected voidload()voidupdate()implementation should update the contents of the trust anchor store.-
Methods inherited from class eu.emi.security.authn.x509.helpers.trust.TimedTrustAnchorStoreBase
dispose, scheduleUpdate, setUpdateInterval
-
Methods inherited from class eu.emi.security.authn.x509.helpers.trust.AbstractTrustAnchorStore
checkValidity, getUpdateInterval
-
-
-
-
Field Detail
-
keystore
protected KeyStore keystore
-
anchors
protected Set<TrustAnchor> anchors
-
ca
protected X509Certificate[] ca
-
-
Constructor Detail
-
JDKInMemoryTrustAnchorStore
public JDKInMemoryTrustAnchorStore(KeyStore ks) throws KeyStoreException
- Throws:
KeyStoreException
-
JDKInMemoryTrustAnchorStore
protected JDKInMemoryTrustAnchorStore(KeyStore ks, Timer timer, long updateInterval, ObserversHandler observers) throws KeyStoreException
- Throws:
KeyStoreException
-
-
Method Detail
-
load
protected void load() throws KeyStoreException- Throws:
KeyStoreException
-
getTrustAnchors
public Set<TrustAnchor> getTrustAnchors()
-
getTrustedCertificates
public X509Certificate[] getTrustedCertificates()
-
getKeyStore
public KeyStore getKeyStore()
-
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.- Specified by:
updatein classTimedTrustAnchorStoreBase
-
-