FileDocCategorySizeDatePackage
ConnectionContext.javaAPI DocGlassfish v2 API4489Fri May 04 22:34:58 BST 2007com.sun.enterprise.iiop.security

ConnectionContext

public final class ConnectionContext extends Object implements Serializable
author
Vivek Nagar

Fields Summary
private CompoundSecMech
mechanism
private boolean
sslClientAuth
private boolean
ssl
private com.sun.corba.ee.spi.ior.IOR
ior
private Socket
socket
private com.sun.corba.ee.spi.transport.SocketInfo
endpoint
Constructors Summary
public ConnectionContext()
Default constructor.


           
      
    
public ConnectionContext(CompoundSecMech mech, com.sun.corba.ee.spi.ior.IOR ior)
Create the security mechanism context. This is stored in TLS.

	this.ior = ior;
	mechanism = mech;
    
Methods Summary
public com.sun.corba.ee.spi.transport.SocketInfogetEndPointInfo()

	return endpoint;
    
public com.sun.corba.ee.spi.ior.IORgetIOR()
Return the IOR.

	return ior;
     
public CompoundSecMechgetMechanism()
Return the selected compound security mechanism.

	return mechanism;
    
public booleangetSSLClientAuthenticationOccurred()
Return true if SSL client authentication has happened, false otherwise.

	return sslClientAuth;
    
public booleangetSSLUsed()
Return true if SSL was used to invoke the EJB.

	return ssl;
    
public java.net.SocketgetSocket()
Return the socket for this connection.

	return socket;
    
public voidsetEndPointInfo(com.sun.corba.ee.spi.transport.SocketInfo info)

	endpoint = info;
    
public voidsetIOR(com.sun.corba.ee.spi.ior.IOR ior)
Set the IOR

	this.ior = ior;
    
public voidsetMechanism(CompoundSecMech mech)
Set the mechanism used for this invocation.

	mechanism = mech;
    
public voidsetSSLClientAuthenticationOccurred(boolean val)
Set true if SSL client authentication has happened.

	sslClientAuth = val;
    
public voidsetSSLUsed(boolean val)
Set true if SSL was used to invoke the EJB.

	ssl = val;
    
public voidsetSocket(java.net.Socket s)
Set the socket for this connection.

	socket = s;
    
public java.lang.StringtoString()

	String s = "sslClientAuth=" + sslClientAuth;
	s = s + " SSL=" + ssl;
	s = s + " ENDPOINT=" + endpoint;
	s = s + " mechanism=" + mechanism;
	s = s + " IOR=" + ior;
	s = s + " Socket=" + socket;
	return s;