org.ow2.jonas.security.interceptors.jrmp.ctxcheck
Class ServerInterceptor

java.lang.Object
  extended by org.ow2.jonas.security.interceptors.jrmp.ctxcheck.ServerInterceptor
All Implemented Interfaces:
org.ow2.carol.rmi.interceptor.spi.JServerRequestInterceptor

public class ServerInterceptor
extends Object
implements org.ow2.carol.rmi.interceptor.spi.JServerRequestInterceptor

Checks that the security context that has been unserialized on the server side has a valid signature (Nobody has changed its value).

Author:
Florent Benoit

Constructor Summary
ServerInterceptor()
          Default constructor.
 
Method Summary
 String name()
          get the name of this interceptor
 void receiveRequest(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
          Receive request
 void sendException(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
           
 void sendOther(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
           
 void sendReply(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
          send reply with context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerInterceptor

public ServerInterceptor()
Default constructor.

Method Detail

receiveRequest

public void receiveRequest(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
                    throws IOException
Receive request

Specified by:
receiveRequest in interface org.ow2.carol.rmi.interceptor.spi.JServerRequestInterceptor
Parameters:
JServerRequestInfo - the jrmp server request information
Throws:
IOException - if an exception occurs with the ObjectOutput

sendReply

public void sendReply(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
               throws IOException
send reply with context

Specified by:
sendReply in interface org.ow2.carol.rmi.interceptor.spi.JServerRequestInterceptor
Parameters:
JServerRequestInfo - the jrmp server request information
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.JServerRequestInterceptor
Returns:
name

sendException

public void sendException(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
                   throws IOException
Specified by:
sendException in interface org.ow2.carol.rmi.interceptor.spi.JServerRequestInterceptor
Throws:
IOException

sendOther

public void sendOther(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
               throws IOException
Specified by:
sendOther in interface org.ow2.carol.rmi.interceptor.spi.JServerRequestInterceptor
Throws:
IOException


Copyright © 2010 OW2 Consortium. All Rights Reserved.