COM.claymoresystems.sslg

Interface SSLSocketXInt

Known Implementing Classes:
SSLSocket

public interface SSLSocketXInt

Extended socket functions that only apply to SSL Sockets

Field Summary

static int
CLIENT
static int
SERVER

Method Summary

Vector
getCertificateChain()
get the certificate chain presented by the peer.
int
getCipherSuite()
get the cipherSuite that was negotiated on this socket
SSLPolicyInt
getPolicy()
Get the policy associated with this socket
byte[]
getSessionID()
Get the SessionID associated with this session
int
getVersion()
Get the version of SSL negotiated.
void
renegotiate(SSLPolicyInt policy)
Renegotiate this connection using the specified policy.
void
sendClose()
Send our half of the SSL close_notify handshake
void
waitForClose(boolean enforceFinished)
Wait to receive a close_notify from the other side.

Field Details

CLIENT

public static final int CLIENT

Field Value:
1


SERVER

public static final int SERVER

Field Value:
2

Method Details

getCertificateChain

public Vector getCertificateChain()
            throws IOException
get the certificate chain presented by the peer. This is relevant for clients and servers if Client Authentication is being used.

Returns:
the certificate chain as a Vector of Certificates, null if unavailable


getCipherSuite

public int getCipherSuite()
            throws IOException
get the cipherSuite that was negotiated on this socket

Returns:
the cipherSuite as one of the integers defined in SSLPolicyInt


getPolicy

public SSLPolicyInt getPolicy()
Get the policy associated with this socket

Returns:
the policy


getSessionID

public byte[] getSessionID()
            throws IOException
Get the SessionID associated with this session


getVersion

public int getVersion()
            throws IOException
Get the version of SSL negotiated.

Returns:
768 (0x300) for SSLv3 or 769 (0x301) for TLSv1


renegotiate

public void renegotiate(SSLPolicyInt policy)
            throws IOException
Renegotiate this connection using the specified policy. This may be used (for instance) to renegotiate using client authentication. If renegotiation is successful, this policy becomes the current policy for this socket

Parameters:


sendClose

public void sendClose()
            throws java.io.IOException
Send our half of the SSL close_notify handshake


waitForClose

public void waitForClose(boolean enforceFinished)
            throws java.io.IOException
Wait to receive a close_notify from the other side.

Parameters:
enforceFinished - insist that no more data be present on the connection before the close_notify is received. This ensures that the application has read all the data that the peer sent


Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.