|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.gsi.TrustedCertificates
public class TrustedCertificates
Class that reads in and maintains trusted certificates and signing policy associated with the CAs.
Nested Class Summary | |
---|---|
static class |
TrustedCertificates.CertFilter
Deprecated. |
Field Summary | |
---|---|
static TrustedCertificates.CertFilter |
certFileFilter
Deprecated. |
static java.lang.String |
SIGNING_POLICY_FILE_SUFFIX
Deprecated. Default signing policy suffix. |
Constructor Summary | |
---|---|
protected |
TrustedCertificates()
Deprecated. |
|
TrustedCertificates(java.security.cert.X509Certificate[] certs)
Deprecated. |
|
TrustedCertificates(java.security.cert.X509Certificate[] certs,
SigningPolicy[] policies)
Deprecated. |
Method Summary | |
---|---|
static java.io.FilenameFilter |
getCertFilter()
Deprecated. |
java.security.cert.X509Certificate |
getCertificate(java.lang.String subject)
Deprecated. |
java.security.cert.X509Certificate[] |
getCertificates()
Deprecated. |
static TrustedCertificates |
getDefault()
Deprecated. Obtains the default set of trusted certificates and signing policy |
static TrustedCertificates |
getDefaultTrustedCertificates()
Deprecated. Obtains the default set of trusted certificates and signing policy |
SigningPolicy[] |
getSigningPolicies()
Deprecated. Returns all signing policies |
SigningPolicy |
getSigningPolicy(java.lang.String subject)
Deprecated. Returns signing policy associated with the given CA subject. |
boolean |
isChanged()
Deprecated. Indicates if the last reload caused new certificates to be loaded or existing certificates to be reloaded or any certificates removed |
static TrustedCertificates |
load(java.lang.String locations)
Deprecated. |
static java.security.cert.X509Certificate[] |
loadCertificates(java.lang.String locations)
Deprecated. Loads X509 certificates and signing policy files from specified locations. |
void |
refresh()
Deprecated. |
void |
reload(java.lang.String locations)
Deprecated. |
static void |
setDefaultTrustedCertificates(TrustedCertificates trusted)
Deprecated. Sets the default set of trusted certificates to use. |
java.lang.String |
toString()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final TrustedCertificates.CertFilter certFileFilter
public static final java.lang.String SIGNING_POLICY_FILE_SUFFIX
Constructor Detail |
---|
protected TrustedCertificates()
public TrustedCertificates(java.security.cert.X509Certificate[] certs)
public TrustedCertificates(java.security.cert.X509Certificate[] certs, SigningPolicy[] policies)
Method Detail |
---|
public java.security.cert.X509Certificate[] getCertificates()
public java.security.cert.X509Certificate getCertificate(java.lang.String subject)
public SigningPolicy[] getSigningPolicies()
public SigningPolicy getSigningPolicy(java.lang.String subject)
subject
- CA's subject DN for which signing policy is
required. The DN should be in Globus format (with slashes) and
not reversed. See CertificateUtil.toGlobusID();
public static java.security.cert.X509Certificate[] loadCertificates(java.lang.String locations)
locations
- a list of certificate files/directories to load
the certificates from. The locations are comma
separated.
java.security.cert.X509Certificate
an array
of loaded certificatespublic static TrustedCertificates load(java.lang.String locations)
public static java.io.FilenameFilter getCertFilter()
public void refresh()
public void reload(java.lang.String locations)
public boolean isChanged()
public static TrustedCertificates getDefaultTrustedCertificates()
public static void setDefaultTrustedCertificates(TrustedCertificates trusted)
trusted
- the new set of trusted certificates to use.public static TrustedCertificates getDefault()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |