org.jboss.ejb3.security
Class RoleBasedAuthorizationInterceptorv2
java.lang.Object
org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2
- All Implemented Interfaces:
- org.jboss.aop.advice.Interceptor
public final class RoleBasedAuthorizationInterceptorv2
- extends java.lang.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.
|
Method Summary |
java.lang.String |
getName()
|
protected java.util.Set<java.security.Principal> |
getRoleSet(org.jboss.aop.joinpoint.Invocation invocation)
|
java.lang.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 |
RoleBasedAuthorizationInterceptorv2
public RoleBasedAuthorizationInterceptorv2(Container container,
java.security.CodeSource ejbCS,
java.lang.String ejbName)
getRoleSet
protected java.util.Set<java.security.Principal> getRoleSet(org.jboss.aop.joinpoint.Invocation invocation)
invoke
public java.lang.Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
throws java.lang.Throwable
- Specified by:
invoke in interface org.jboss.aop.advice.Interceptor
- Throws:
java.lang.Throwable
getName
public java.lang.String getName()
- Specified by:
getName in interface org.jboss.aop.advice.Interceptor