org.glite.voms

Class BasicVOMSTrustStore

Implemented Interfaces:
ACTrustStore

public final class BasicVOMSTrustStore
extends java.lang.Object
implements ACTrustStore

Field Summary

static String
DEFAULT_TRUST_STORE_LISTING

Constructor Summary

BasicVOMSTrustStore()
Creates a default VOMS trust store.
BasicVOMSTrustStore(String trustedDirList, long refreshPeriod)
Creates and manages an in-memory cache of VOMS issuers by periodically scanning a directory containing the trusted issuers.

Method Summary

X509Certificate[]
getAACandidate(X500Principal issuer)
String
getDirList()
void
refresh()
Refreshes the in-memory cache of trusted signer certificates.
void
stopRefresh()

Field Details

DEFAULT_TRUST_STORE_LISTING

public static final String DEFAULT_TRUST_STORE_LISTING

Constructor Details

BasicVOMSTrustStore

public BasicVOMSTrustStore()
Creates a default VOMS trust store. Equivalent to
new BasicVOMSTrustStore(DEFAULT_TRUST_STORE_LISTING, 300000);

BasicVOMSTrustStore

public BasicVOMSTrustStore(String trustedDirList,
                           long refreshPeriod)
Creates and manages an in-memory cache of VOMS issuers by periodically scanning a directory containing the trusted issuers. If refreshPeriod is 0, it never refreshes.
Parameters:
trustedDirList - directory listing containing trusted VOMS certs
refreshPeriod - refresh period in milliseconds
See Also:
DirectoryList

Method Details

getAACandidate

public X509Certificate[] getAACandidate(X500Principal issuer)

getDirList

public String getDirList()

refresh

public void refresh()
Refreshes the in-memory cache of trusted signer certificates.

stopRefresh

public void stopRefresh()