org.jboss.ejb3.security
Class RoleBasedAuthorizationInterceptorv2

java.lang.Object
  extended by org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2
All Implemented Interfaces:
org.jboss.aop.advice.Interceptor

public final class RoleBasedAuthorizationInterceptorv2
extends Object
implements org.jboss.aop.advice.Interceptor

The RoleBasedAuthorizationInterceptor checks that the caller principal is authorized to call a method by verifing that it contains at least one of the required roled.

Version:
$Revision: 62539 $
Author:
Bill Burke, Anil.Saldhana@redhat.com

Constructor Summary
RoleBasedAuthorizationInterceptorv2(Container container, CodeSource ejbCS, String ejbName)
           
 
Method Summary
 String getName()
           
protected  Set<Principal> getRoleSet(org.jboss.aop.joinpoint.Invocation invocation)
           
 Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleBasedAuthorizationInterceptorv2

public RoleBasedAuthorizationInterceptorv2(Container container,
                                           CodeSource ejbCS,
                                           String ejbName)
Method Detail

getRoleSet

protected Set<Principal> getRoleSet(org.jboss.aop.joinpoint.Invocation invocation)

invoke

public Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
              throws Throwable
Specified by:
invoke in interface org.jboss.aop.advice.Interceptor
Throws:
Throwable

getName

public String getName()
Specified by:
getName in interface org.jboss.aop.advice.Interceptor


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.