Serializable
public class TrustedCertificates extends Object implements Serializable
Modifier and Type | Class | Description |
---|---|---|
static class |
TrustedCertificates.CertFilter |
Deprecated.
|
Modifier and Type | Field | Description |
---|---|---|
static TrustedCertificates.CertFilter |
certFileFilter |
Deprecated.
|
static String |
SIGNING_POLICY_FILE_SUFFIX |
Deprecated.
Default signing policy suffix.
|
Modifier | Constructor | Description |
---|---|---|
protected |
TrustedCertificates() |
Deprecated.
|
|
TrustedCertificates(X509Certificate[] certs) |
Deprecated.
|
|
TrustedCertificates(X509Certificate[] certs,
SigningPolicy[] policies) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
static FilenameFilter |
getCertFilter() |
Deprecated.
|
X509Certificate |
getCertificate(String subject) |
Deprecated.
|
X509Certificate[] |
getCertificates() |
Deprecated.
|
static 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
|
SigningPolicy[] |
getSigningPolicies() |
Deprecated.
Returns all signing policies
|
SigningPolicy |
getSigningPolicy(String subject) |
Deprecated.
Returns signing policy associated with the given CA subject.
|
static ResourceSigningPolicyStore |
getsigPolStore() |
Deprecated.
|
static 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(String locations) |
Deprecated.
|
static X509Certificate[] |
loadCertificates(String locations) |
Deprecated.
Loads X509 certificates and signing policy files from specified
locations.
|
void |
reload(String locations) |
Deprecated.
|
static void |
setDefaultTrustedCertificates(TrustedCertificates trusted) |
Deprecated.
Sets the default set of trusted certificates to use.
|
String |
toString() |
Deprecated.
|
public static final TrustedCertificates.CertFilter certFileFilter
public static final String SIGNING_POLICY_FILE_SUFFIX
protected TrustedCertificates()
public TrustedCertificates(X509Certificate[] certs)
public TrustedCertificates(X509Certificate[] certs, SigningPolicy[] policies)
public X509Certificate[] getCertificates()
public X509Certificate getCertificate(String subject)
public SigningPolicy[] getSigningPolicies()
public SigningPolicy getSigningPolicy(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 X509Certificate[] loadCertificates(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(String locations)
public static FilenameFilter getCertFilter()
public void reload(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 static KeyStore getTrustStore()
public static CertStore getcrlStore()
public static ResourceSigningPolicyStore getsigPolStore()
Copyright © 2018. All rights reserved.