org.globus.gsi.ptls
Class PureTLSContext

java.lang.Object
  extended byCOM.claymoresystems.sslg.SSLContextInt
      extended byCOM.claymoresystems.ptls.SSLContext
          extended byorg.globus.gsi.ptls.PureTLSContext

public class PureTLSContext
extends COM.claymoresystems.ptls.SSLContext

Extensions to the PureTLS's SSLContext class to allow setting the context credentials and trusted certificates as objects instead of reading them from files. Also allows the use of standard Java security objects for credential and trusted certificates instead of proprietary PureTLS/Cryptix format.


Field Summary
 
Fields inherited from class COM.claymoresystems.sslg.SSLContextInt
policy
 
Constructor Summary
PureTLSContext()
           
 
Method Summary
protected  COM.claymoresystems.ptls.SSLSessionData findSession(String key)
           
 void setCredential(GlobusCredential cred)
          Sets the credential.
 void setTrustedCertificates(X509Certificate[] certs)
          Sets trusted certificates.
protected  void storeSession(String key, COM.claymoresystems.ptls.SSLSessionData sd)
           
 
Methods inherited from class COM.claymoresystems.ptls.SSLContext
destroySession, getRootList, loadDHParams, loadDHParams, loadEAYKeyFile, loadEAYKeyFile, loadPKCS12File, loadRootCertificates, loadRootCertificates, saveDHParams, saveEAYKeyFile, seedRNG, setCertificateChain, setPrivateKey, setPublicKey, setPublicKeyFromCert, setRootList, useRandomnessFile
 
Methods inherited from class COM.claymoresystems.sslg.SSLContextInt
getPolicy, setPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PureTLSContext

public PureTLSContext()
Method Detail

setTrustedCertificates

public void setTrustedCertificates(X509Certificate[] certs)
                            throws GeneralSecurityException
Sets trusted certificates.

Parameters:
certs - the trusted certificates.
Throws:
GeneralSecurityException - in case of an error

setCredential

public void setCredential(GlobusCredential cred)
                   throws GeneralSecurityException
Sets the credential.

Parameters:
cred - the credential
Throws:
GeneralSecurityException - in case of an error

findSession

protected COM.claymoresystems.ptls.SSLSessionData findSession(String key)

storeSession

protected void storeSession(String key,
                            COM.claymoresystems.ptls.SSLSessionData sd)