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

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

public class ClientSecurityInterceptor
extends Object
implements org.ow2.carol.rmi.interceptor.spi.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
 String name()
          get the name of this interceptor
 void receiveException(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
           
 void receiveOther(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
           
 void receiveReply(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
          we do not use the received security context to set it (EJB, v1.1, chapter 15.5) Receive reply interception
 void sendPoll(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
           
 void sendRequest(org.ow2.carol.rmi.interceptor.api.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

sendRequest

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

Specified by:
sendRequest in interface org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor
Parameters:
JClientRequestInfo - jri the jrmp client info
Throws:
IOException - if an exception occur with the ObjectOutput

receiveReply

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

Specified by:
receiveReply in interface org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor
Parameters:
JClientRequestInfo - jri the jrmp client info
Throws:
IOException - if an exception occur with the ObjectOutput

name

public String name()
get the name of this interceptor

Specified by:
name in interface org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor
Returns:
name

sendPoll

public void sendPoll(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
              throws IOException
Specified by:
sendPoll in interface org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor
Throws:
IOException

receiveException

public void receiveException(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
                      throws IOException
Specified by:
receiveException in interface org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor
Throws:
IOException

receiveOther

public void receiveOther(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
                  throws IOException
Specified by:
receiveOther in interface org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor
Throws:
IOException


Copyright © 2010 OW2 Consortium. All Rights Reserved.