org.globus.gsi.ptls
Class PureTLSTrustedCertificates
java.lang.Object
org.globus.gsi.TrustedCertificates
org.globus.gsi.ptls.PureTLSTrustedCertificates
- All Implemented Interfaces:
- Serializable
public class PureTLSTrustedCertificates
- extends TrustedCertificates
A PureTLS-optimized version of the TrustedCertificates
code.
- See Also:
- Serialized Form
PureTLSTrustedCertificates
protected PureTLSTrustedCertificates()
PureTLSTrustedCertificates
public PureTLSTrustedCertificates(TrustedCertificates tc)
setTrustedCertificates
protected void setTrustedCertificates(TrustedCertificates tc)
getCertificates
public X509Certificate[] getCertificates()
- Overrides:
getCertificates
in class TrustedCertificates
getCertificate
public X509Certificate getCertificate(String subject)
- Overrides:
getCertificate
in class TrustedCertificates
getSigningPolicies
public SigningPolicy[] getSigningPolicies()
- Description copied from class:
TrustedCertificates
- Returns all signing policies
- Overrides:
getSigningPolicies
in class TrustedCertificates
getSigningPolicy
public SigningPolicy getSigningPolicy(String subject)
- Description copied from class:
TrustedCertificates
- Returns signing policy associated with the given CA subject.
- Overrides:
getSigningPolicy
in class TrustedCertificates
- Parameters:
subject
- CA's subject DN for which signing policy is
required. The DN should be in Globus format (with slashes) and
not reversed. See CertUtil.toGlobusID();
- Returns:
- Signing policy object associated with the CA's DN. Null
if no policy was configured. SigningPolicy object might not
have any applicable policy if none was configured or none was
found in the policy file configured.
refresh
public void refresh()
- Overrides:
refresh
in class TrustedCertificates
reload
public void reload(String locations)
- Overrides:
reload
in class TrustedCertificates
getX509CertList
public Vector getX509CertList()
- Returns the trusted certificates as a Vector of X509Cert objects.
- Overrides:
getX509CertList
in class TrustedCertificates
getDefaultPureTLSTrustedCertificates
public static PureTLSTrustedCertificates getDefaultPureTLSTrustedCertificates()