eu.emi.security.authn.x509.helpers.trust
Class JDKInMemoryTrustAnchorStore

java.lang.Object
  extended by eu.emi.security.authn.x509.helpers.trust.AbstractTrustAnchorStore
      extended by eu.emi.security.authn.x509.helpers.trust.TimedTrustAnchorStoreBase
          extended by eu.emi.security.authn.x509.helpers.trust.JDKInMemoryTrustAnchorStore
All Implemented Interfaces:
TrustAnchorStore
Direct Known Subclasses:
JDKFSTrustAnchorStore

public class JDKInMemoryTrustAnchorStore
extends TimedTrustAnchorStoreBase

Implementation of the TrustAnchorStore which uses JDK's KeyStore as a in-memory storage.

Author:
K. Benedyczak

Field Summary
protected  Set<TrustAnchor> anchors
           
protected  X509Certificate[] ca
           
protected  KeyStore keystore
           
 
Fields inherited from class eu.emi.security.authn.x509.helpers.trust.AbstractTrustAnchorStore
observers, updateInterval
 
Constructor Summary
  JDKInMemoryTrustAnchorStore(KeyStore ks)
           
protected JDKInMemoryTrustAnchorStore(KeyStore ks, Timer timer, long updateInterval, ObserversHandler observers)
           
 
Method Summary
 KeyStore getKeyStore()
           
 Set<TrustAnchor> getTrustAnchors()
           
 X509Certificate[] getTrustedCertificates()
           
protected  void load()
           
protected  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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

protected 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 class TimedTrustAnchorStoreBase


Copyright © 2012-2014 European Middleware Initiative. All Rights Reserved.