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 theTrustAnchorStore
which uses JDK'sKeyStore
as a in-memory storage.- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<TrustAnchor>
anchors
protected X509Certificate[]
ca
protected KeyStore
keystore
-
Fields inherited from class eu.emi.security.authn.x509.helpers.trust.AbstractTrustAnchorStore
observers
-
-
Constructor Summary
Constructors Modifier Constructor Description JDKInMemoryTrustAnchorStore(KeyStore ks)
protected
JDKInMemoryTrustAnchorStore(KeyStore ks, Timer timer, long updateInterval, ObserversHandler observers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyStore
getKeyStore()
Set<TrustAnchor>
getTrustAnchors()
X509Certificate[]
getTrustedCertificates()
protected void
load()
void
update()
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:TimedTrustAnchorStoreBase
implementation should update the contents of the trust anchor store. It need not to bother with scheduling.- Specified by:
update
in classTimedTrustAnchorStoreBase
-
-