Java Globus API: Class IaikGSIBaseSocket

org.globus.security.gsi
Class IaikGSIBaseSocket

java.lang.Object
  |
  +--java.net.Socket
        |
        +--org.globus.security.gsi.GSIBaseSocket
              |
              +--org.globus.security.gsi.IaikGSIBaseSocket
Direct Known Subclasses:
IaikGSISocket

public class IaikGSIBaseSocket
extends GSIBaseSocket


Field Summary
protected  iaik.security.ssl.SSLSocket sslSocket
           
 
Fields inherited from class org.globus.security.gsi.GSIBaseSocket
authorization, credentials, encryption, init, socket, trustedCerts
 
Constructor Summary
protected IaikGSIBaseSocket()
           
  IaikGSIBaseSocket(iaik.security.ssl.SSLSocket socket)
           
 
Method Summary
 java.security.cert.X509Certificate[] getPeerCertificateChain()
           
 GlobusProxy handleDelegation()
          Handles the delegation process.
 java.security.cert.X509Certificate performDelegation(int delegationType)
           
protected  void setSocket(iaik.security.ssl.SSLSocket socket)
           
 void setUseClientMode(boolean mode)
           
 
Methods inherited from class org.globus.security.gsi.GSIBaseSocket
authorize, close, doGSI, enableEncryption, getAuthorization, getCredentials, getInetAddress, getInputStream, getLocalAddress, getLocalPort, getOutputStream, getPort, getTrustedCertificates, isEncryptionEnabled, performNoDelegation, setAuthorization, setCredentials, setSocket, setTcpNoDelay, setTrustedCertificates
 
Methods inherited from class java.net.Socket
getKeepAlive, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, setKeepAlive, setReceiveBufferSize, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, shutdownInput, shutdownOutput, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sslSocket

protected iaik.security.ssl.SSLSocket sslSocket
Constructor Detail

IaikGSIBaseSocket

protected IaikGSIBaseSocket()

IaikGSIBaseSocket

public IaikGSIBaseSocket(iaik.security.ssl.SSLSocket socket)
Method Detail

setSocket

protected void setSocket(iaik.security.ssl.SSLSocket socket)

setUseClientMode

public void setUseClientMode(boolean mode)
                      throws java.io.IOException
Overrides:
setUseClientMode in class GSIBaseSocket

getPeerCertificateChain

public java.security.cert.X509Certificate[] getPeerCertificateChain()
Overrides:
getPeerCertificateChain in class GSIBaseSocket

performDelegation

public java.security.cert.X509Certificate performDelegation(int delegationType)
                                                     throws java.io.IOException
Overrides:
performDelegation in class GSIBaseSocket

handleDelegation

public GlobusProxy handleDelegation()
                             throws java.io.IOException
Description copied from class: GSIBaseSocket
Handles the delegation process. Implementation: It reads one character from the input stream of the socket. If this is a 'D', it handles delegation. Otherwise it simply returns null. Null indicates that delegation was not requested.
Overrides:
handleDelegation in class GSIBaseSocket
Following copied from class: org.globus.security.gsi.GSIBaseSocket
Returns:
GlobusProxy a GlobusProxy object, null if delegation was not requested.