public class TrustedCertificates
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TrustedCertificates.CertFilter
Deprecated.
|
private static class |
TrustedCertificates.DefaultTrustedCertificates
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static TrustedCertificates.CertFilter |
certFileFilter
Deprecated.
|
private java.util.Vector |
certList
Deprecated.
|
private java.util.Map |
certSubjectDNMap
Deprecated.
|
private boolean |
changed
Deprecated.
|
private java.util.Set<javax.security.auth.x500.X500Principal> |
invalidPolicies
Deprecated.
|
private static org.apache.commons.logging.Log |
logger
Deprecated.
|
private static java.security.cert.CertStore |
ms_crlStore
Deprecated.
|
private static ResourceSigningPolicyStore |
ms_sigPolStore
Deprecated.
|
private static java.security.KeyStore |
ms_trustStore
Deprecated.
|
private java.util.Map |
policyDNMap
Deprecated.
|
static java.lang.String |
SIGNING_POLICY_FILE_SUFFIX
Deprecated.
Default signing policy suffix.
|
private static TrustedCertificates |
trustedCertificates
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
TrustedCertificates()
Deprecated.
|
|
TrustedCertificates(java.security.cert.X509Certificate[] certs)
Deprecated.
|
|
TrustedCertificates(java.security.cert.X509Certificate[] certs,
SigningPolicy[] policies)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static java.io.FilenameFilter |
getCertFilter()
Deprecated.
|
java.security.cert.X509Certificate |
getCertificate(java.lang.String subject)
Deprecated.
|
java.security.cert.X509Certificate[] |
getCertificates()
Deprecated.
|
static java.security.cert.CertStore |
getcrlStore()
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
|
private java.lang.String |
getPolicyFileName(java.lang.String caFileName)
Deprecated.
Signing policy name is created as <hashcode>.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.
|
static ResourceSigningPolicyStore |
getsigPolStore()
Deprecated.
|
static java.security.KeyStore |
getTrustStore()
Deprecated.
|
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 |
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.
|
private static org.apache.commons.logging.Log logger
public static final TrustedCertificates.CertFilter certFileFilter
private static TrustedCertificates trustedCertificates
private java.util.Map certSubjectDNMap
private java.util.Map policyDNMap
private java.util.Vector certList
private final java.util.Set<javax.security.auth.x500.X500Principal> invalidPolicies
private boolean changed
public static final java.lang.String SIGNING_POLICY_FILE_SUFFIX
private static java.security.KeyStore ms_trustStore
private static java.security.cert.CertStore ms_crlStore
private static ResourceSigningPolicyStore ms_sigPolStore
protected TrustedCertificates()
public TrustedCertificates(java.security.cert.X509Certificate[] certs)
public TrustedCertificates(java.security.cert.X509Certificate[] certs, SigningPolicy[] policies)
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 reload(java.lang.String locations)
private java.lang.String getPolicyFileName(java.lang.String caFileName)
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 static java.security.KeyStore getTrustStore()
public static java.security.cert.CertStore getcrlStore()
public static ResourceSigningPolicyStore getsigPolStore()
public java.lang.String toString()
toString
in class java.lang.Object