Java Globus API: Class PureTLSContext
org.globus.gsi.ptls
Class PureTLSContext
java.lang.Object
|
+--COM.claymoresystems.sslg.SSLContextInt
|
+--COM.claymoresystems.ptls.SSLContext
|
+--org.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.
Fields inherited from class COM.claymoresystems.sslg.SSLContextInt
policy
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, storeSession, 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
PureTLSContext
public PureTLSContext ()
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 credentialThrows: GeneralSecurityException - in case of an error
findSession
protected COM.claymoresystems.ptls.SSLSessionData findSession (String key)
Overrides: findSession in class COM.claymoresystems.ptls.SSLContext