org.globus.gsi.ptls
Class PureTLSTrustedCertificates

java.lang.Object
  extended byorg.globus.gsi.TrustedCertificates
      extended byorg.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

Nested Class Summary
 
Nested classes inherited from class org.globus.gsi.TrustedCertificates
TrustedCertificates.CertFilter
 
Field Summary
 
Fields inherited from class org.globus.gsi.TrustedCertificates
certFileFilter, SIGNING_POLICY_FILE_SUFFIX
 
Constructor Summary
protected PureTLSTrustedCertificates()
           
  PureTLSTrustedCertificates(TrustedCertificates tc)
           
 
Method Summary
 X509Certificate getCertificate(String subject)
           
 X509Certificate[] getCertificates()
           
static PureTLSTrustedCertificates getDefaultPureTLSTrustedCertificates()
           
 SigningPolicy[] getSigningPolicies()
          Returns all signing policies
 SigningPolicy getSigningPolicy(String subject)
          Returns signing policy associated with the given CA subject.
 Vector getX509CertList()
          Returns the trusted certificates as a Vector of X509Cert objects.
 void refresh()
           
 void reload(String locations)
           
protected  void setTrustedCertificates(TrustedCertificates tc)
           
 
Methods inherited from class org.globus.gsi.TrustedCertificates
getCertFilter, getDefault, getDefaultTrustedCertificates, isChanged, load, loadCertificates, setDefaultTrustedCertificates, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PureTLSTrustedCertificates

protected PureTLSTrustedCertificates()

PureTLSTrustedCertificates

public PureTLSTrustedCertificates(TrustedCertificates tc)
Method Detail

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.


getDefaultPureTLSTrustedCertificates

public static PureTLSTrustedCertificates getDefaultPureTLSTrustedCertificates()