|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.italiangrid.voms.store.impl.DefaultVOMSTrustStore
public class DefaultVOMSTrustStore
The default implementation for the VOMS trust store. This implementation does not refresh the trust information
on a periodic basis. For an updating trust store see DefaultUpdatingVOMSTrustStore
.
Field Summary | |
---|---|
static String |
CERTIFICATE_FILENAME_SUFFIX
The filename suffix used to match certificates in the VOMS local trust directories |
static String |
DEFAULT_VOMS_DIR
The default directory where local VOMS trust information is rooted |
static String |
LSC_FILENAME_SUFFIX
The filename suffix used to match LSC files in the VOMS local trust directories |
Constructor Summary | |
---|---|
DefaultVOMSTrustStore()
Default constructor. |
|
DefaultVOMSTrustStore(List<String> localTrustDirs)
|
|
DefaultVOMSTrustStore(List<String> localTrustDirs,
VOMSTrustStoreStatusListener listener)
|
|
DefaultVOMSTrustStore(VOMSTrustStoreStatusListener listener)
|
Method Summary | |
---|---|
protected static List<String> |
buildDefaultTrustedDirs()
Builds a list of trusted directories containing only DEFAULT_VOMS_DIR . |
X509Certificate |
getAACertificateBySubject(X500Principal aaCertSubject)
Returns the VOMS Attribute Authority certificate held in this VOMSTrustStore whose subject
matches the subject passed as argument. |
Map<String,Set<LSCInfo>> |
getAllLSCInfo()
Returns all the LSC information held in this VOMSTrustStore . |
List<X509Certificate> |
getLocalAACertificates()
Returns the list of VOMS Attribute Authority certificates held in this VOMSTrustStore . |
List<String> |
getLocalTrustedDirectories()
Returns the locally trusted directories where VOMS trust information (being VOMS server certificates or LSC files) are searched for. |
LSCInfo |
getLSC(String voName,
String hostname)
Returns the LSC information held in this VOMSTrustStore for the vo and hostname passed as arguments. |
void |
loadTrustInformation()
Loads trust information from the sources configured for this trust store. |
void |
setStatusListener(VOMSTrustStoreStatusListener statusListener)
Sets a VOMSTrustStoreStatusListener that is notified of events related
to this VOMS trust store |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_VOMS_DIR
public static final String CERTIFICATE_FILENAME_SUFFIX
public static final String LSC_FILENAME_SUFFIX
Constructor Detail |
---|
public DefaultVOMSTrustStore(List<String> localTrustDirs, VOMSTrustStoreStatusListener listener)
localTrustDirs
- a non-null list of local trust directories
IllegalArgumentException
- when the list passed as argument is nullpublic DefaultVOMSTrustStore(VOMSTrustStoreStatusListener listener)
public DefaultVOMSTrustStore(List<String> localTrustDirs)
public DefaultVOMSTrustStore()
Method Detail |
---|
protected static List<String> buildDefaultTrustedDirs()
DEFAULT_VOMS_DIR
.
public List<String> getLocalTrustedDirectories()
VOMSTrustStore
getLocalTrustedDirectories
in interface VOMSTrustStore
List
of local pathspublic List<X509Certificate> getLocalAACertificates()
VOMSTrustStore
VOMSTrustStore
.
getLocalAACertificates
in interface VOMSTrustStore
VOMSTrustStore
, an empty list
if no certificate was found.public LSCInfo getLSC(String voName, String hostname)
VOMSTrustStore
VOMSTrustStore
for the vo and hostname passed as arguments.
getLSC
in interface VOMSTrustStore
voName
- the name of the VO for which the LSC applieshostname
- the name of the host for which the LSC applies
LSCInfo
object, or null if no LSC matching the arguments was foundpublic void loadTrustInformation()
VOMSTrustStore
loadTrustInformation
in interface VOMSTrustStore
public X509Certificate getAACertificateBySubject(X500Principal aaCertSubject)
VOMSTrustStore
VOMSTrustStore
whose subject
matches the subject passed as argument.
getAACertificateBySubject
in interface VOMSTrustStore
aaCertSubject
- a certificate subject
X509Certificate
that matches the subject passed as argument or null if no matching
certificate is found in this storepublic Map<String,Set<LSCInfo>> getAllLSCInfo()
VOMSTrustStore
VOMSTrustStore
.
The returned Map
is keyed by VO name.
getAllLSCInfo
in interface VOMSTrustStore
LSCInfo
objectspublic void setStatusListener(VOMSTrustStoreStatusListener statusListener)
VOMSTrustStore
VOMSTrustStoreStatusListener
that is notified of events related
to this VOMS trust store
setStatusListener
in interface VOMSTrustStore
statusListener
- the status listener that will be notified
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |