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 java.util.Set<java.security.cert.TrustAnchor>
anchors
protected java.security.cert.X509Certificate[]
ca
protected java.security.KeyStore
keystore
-
Fields inherited from class eu.emi.security.authn.x509.helpers.trust.AbstractTrustAnchorStore
observers
-
-
Constructor Summary
Constructors Modifier Constructor Description JDKInMemoryTrustAnchorStore(java.security.KeyStore ks)
protected
JDKInMemoryTrustAnchorStore(java.security.KeyStore ks, java.util.Timer timer, long updateInterval, ObserversHandler observers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.KeyStore
getKeyStore()
java.util.Set<java.security.cert.TrustAnchor>
getTrustAnchors()
java.security.cert.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
-
-
-
-
Constructor Detail
-
JDKInMemoryTrustAnchorStore
public JDKInMemoryTrustAnchorStore(java.security.KeyStore ks) throws java.security.KeyStoreException
- Throws:
java.security.KeyStoreException
-
JDKInMemoryTrustAnchorStore
protected JDKInMemoryTrustAnchorStore(java.security.KeyStore ks, java.util.Timer timer, long updateInterval, ObserversHandler observers) throws java.security.KeyStoreException
- Throws:
java.security.KeyStoreException
-
-
Method Detail
-
load
protected void load() throws java.security.KeyStoreException
- Throws:
java.security.KeyStoreException
-
getTrustAnchors
public java.util.Set<java.security.cert.TrustAnchor> getTrustAnchors()
-
getTrustedCertificates
public java.security.cert.X509Certificate[] getTrustedCertificates()
-
getKeyStore
public java.security.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
-
-