IaikGSIBaseSocket (Java Globus API)

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
 
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.lang.String getCipherSuite()
           
 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
bind, connect, connect, getChannel, getKeepAlive, getLocalSocketAddress, getOOBInline, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTrafficClass, shutdownInput, shutdownOutput, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Specified by:
setUseClientMode in class GSIBaseSocket
java.io.IOException

getCipherSuite

public java.lang.String getCipherSuite()
Specified by:
getCipherSuite in class GSIBaseSocket

getPeerCertificateChain

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

performDelegation

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

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.

Specified by:
handleDelegation in class GSIBaseSocket
Returns:
GlobusProxy a GlobusProxy object, null if delegation was not requested.
java.io.IOException