org.objectweb.jonas.security.interceptors.jrmp
Class ClientSecurityInterceptor

java.lang.Object
  extended by org.objectweb.jonas.security.interceptors.jrmp.ClientSecurityInterceptor
All Implemented Interfaces:
java.io.Serializable, org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor

public class ClientSecurityInterceptor
extends java.lang.Object
implements org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor

Class ClientSecurityInterceptor is a JRMP Security client interceptor for Security Context propagation

Version:
1.0, 10/03/2003
Author:
Jeff Mesnil, Guillaume Riviere
See Also:
Serialized Form

Field Summary
static int SEC_CTX_ID
          security context id
 
Constructor Summary
ClientSecurityInterceptor()
          constructor
 
Method Summary
 java.lang.String name()
          get the name of this interceptor
 void receive_exception(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
           
 void receive_other(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
           
 void receive_reply(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
          we do not use the received security context to set it (EJB, v1.1, chapter 15.5) Receive reply interception
 void send_poll(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
           
 void send_request(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
          send client context with the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEC_CTX_ID

public static int SEC_CTX_ID
security context id

Constructor Detail

ClientSecurityInterceptor

public ClientSecurityInterceptor()
constructor

Method Detail

send_request

public void send_request(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
                  throws java.io.IOException
send client context with the request. The sendingRequest method of the JPortableInterceptors is called prior to marshalling arguments and contexts

Specified by:
send_request in interface org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor
Parameters:
JClientRequestInfo - jri the jrmp client info
Throws:
java.io.IOException - if an exception occur with the ObjectOutput

receive_reply

public void receive_reply(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
                   throws java.io.IOException
we do not use the received security context to set it (EJB, v1.1, chapter 15.5) Receive reply interception

Specified by:
receive_reply in interface org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor
Parameters:
JClientRequestInfo - jri the jrmp client info
Throws:
java.io.IOException - if an exception occur with the ObjectOutput

name

public java.lang.String name()
get the name of this interceptor

Specified by:
name in interface org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor
Returns:
name

send_poll

public void send_poll(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
               throws java.io.IOException
Specified by:
send_poll in interface org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor
Throws:
java.io.IOException

receive_exception

public void receive_exception(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
                       throws java.io.IOException
Specified by:
receive_exception in interface org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor
Throws:
java.io.IOException

receive_other

public void receive_other(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
                   throws java.io.IOException
Specified by:
receive_other in interface org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor
Throws:
java.io.IOException