org.ow2.jonas.security.interceptors.iiop
Class SecurityInterceptor

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.ow2.jonas.security.interceptors.iiop.SecurityInterceptor
All Implemented Interfaces:
Object
Direct Known Subclasses:
CorbaClientSecurityInterceptor, CorbaServerSecurityInterceptor

public abstract class SecurityInterceptor
extends LocalObject

Marshall/Unmarshall security context

Author:
Guillaume Riviere (initial developer), Florent Benoit

Field Summary
static int SEC_CTX_ID
          security context id
 
Constructor Summary
SecurityInterceptor()
           
 
Method Summary
 String contextString(SecurityContext scx)
          Return string representation of a security context
 byte[] marshallSecurityContext(SecurityContext ctx)
          Custom UTF8 marshalling SecurityContext The resulting bute array is composed of the following elements: principal-name, roles-number, role1, ...., runas-number, runas1, ....
 SecurityContext unmarshallSecurityContext(byte[] byteCtx)
          Custom UTF8 marshalling SecurityContext
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
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 final int SEC_CTX_ID
security context id

See Also:
Constant Field Values
Constructor Detail

SecurityInterceptor

public SecurityInterceptor()
Method Detail

marshallSecurityContext

public byte[] marshallSecurityContext(SecurityContext ctx)
Custom UTF8 marshalling SecurityContext The resulting bute array is composed of the following elements: principal-name, roles-number, role1, ...., runas-number, runas1, ....

Parameters:
ctx - SecurityContext
Returns:
byte [] the marshalled context

unmarshallSecurityContext

public SecurityContext unmarshallSecurityContext(byte[] byteCtx)
Custom UTF8 marshalling SecurityContext

Parameters:
byteCtx - the marshalled context
Returns:
SecurityContext

contextString

public String contextString(SecurityContext scx)
Return string representation of a security context

Parameters:
scx - given security context
Returns:
string representation of a security context


Copyright © 2010 OW2 Consortium. All Rights Reserved.