Framework Professional Edition Package


com.prosyst.util.net
Class SecureSocket

java.lang.Object
  extended by java.net.Socket
      extended by com.prosyst.util.net.SecureSocket

public abstract class SecureSocket
extends java.net.Socket

SecureSocket enables security check of correspondent certificate chain. Object of such type can be received as result of openSocket methods of some SocketFactory implementations or as result of ServerSocket.accept(), where ServerSocket is received as result of openServerSocket method of some ServerSocketFactory implementation. Two factories from which such socket can be obtained are TLS server socket factory (ServerSocketFactory) and TLS client socket factory (SocketFactory).


Constructor Summary
SecureSocket()
           
 
Method Summary
abstract  byte[][] getCorrespondentCertChain()
          Returns certificate chain used from correspondent to authorize itself.
 
Methods inherited from class java.net.Socket
bind, close, connect, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecureSocket

public SecureSocket()
Method Detail

getCorrespondentCertChain

public abstract byte[][] getCorrespondentCertChain()
Returns certificate chain used from correspondent to authorize itself. The first certificate in the chain is the one set by the client, the next is the one used to authenticate the first, and so on. The last is root.

Returns:
correspondent certificate chain. Root certificate is the last certificate in array.

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved