org.openorb.orb.ssl
Class SSLAssociation

java.lang.Object
  extended by org.openorb.orb.ssl.SSLAssociation
All Implemented Interfaces:
SecureAssociation

public class SSLAssociation
extends java.lang.Object
implements SecureAssociation

SSL Association. Provides information about the current server or client request's security attributes.

Author:
Chris Wood

Constructor Summary
SSLAssociation(int assocRequires, boolean isServer)
          Creates new SSLAssociation
 
Method Summary
 int getActiveAssociationOptions()
          Get the active association options of the current session.
 int getAssociationOptions()
          Get the Security::AssociationOptions associated with the connection.
 java.lang.String getCipherSuite()
          Get the active cipher suite.
 javax.net.ssl.HandshakeCompletedListener getHandshakeCompletedListener()
          Return the handshake listener.
 java.lang.String getSecMech()
          Get the security mechanism name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLAssociation

public SSLAssociation(int assocRequires,
                      boolean isServer)
Creates new SSLAssociation

Parameters:
assocRequires - The required attributes.
isServer - Whether the association is a server association.
Method Detail

getSecMech

public java.lang.String getSecMech()
Get the security mechanism name.

Specified by:
getSecMech in interface SecureAssociation
Returns:
The name of the security mechanism: SSL.

getAssociationOptions

public int getAssociationOptions()
Get the Security::AssociationOptions associated with the connection. This will be equal to the required association options.

Specified by:
getAssociationOptions in interface SecureAssociation
Returns:
The association options.

getCipherSuite

public java.lang.String getCipherSuite()
Get the active cipher suite. This can change when connections are reestablished and sessions are terminated.

Returns:
The cipher suite used.

getActiveAssociationOptions

public int getActiveAssociationOptions()
Get the active association options of the current session. This can change when connections are reestablished and sessions are terminated.

Returns:
The association options.

getHandshakeCompletedListener

public javax.net.ssl.HandshakeCompletedListener getHandshakeCompletedListener()
Return the handshake listener.

Returns:
The SSL handshake listener.