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

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

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

Class ServerSecurityInterceptor is a JRMP security server interceptor for Security Context propagation

Version:
1.0, 10/03/2003

Field Summary
static int SEC_CTX_ID
          security context id
 
Constructor Summary
ServerSecurityInterceptor()
          Empty 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
 

Field Detail

SEC_CTX_ID

public static int SEC_CTX_ID
security context id

Constructor Detail

ServerSecurityInterceptor

public ServerSecurityInterceptor()
Empty 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.