net.bryansaunders.jee6divelog.security.interceptor
Class HasRoleInterceptor

java.lang.Object
  extended by net.bryansaunders.jee6divelog.security.interceptor.HasRoleInterceptor

@Interceptor
public class HasRoleInterceptor
extends java.lang.Object

HasRole Interceptor.

Author:
Bryan Saunders

Constructor Summary
HasRoleInterceptor()
           
 
Method Summary
 java.lang.Object checkAuthenticaion(javax.interceptor.InvocationContext ctx)
          Intercepts the Method Call and Throws an Exception if Access is Not Allowed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HasRoleInterceptor

public HasRoleInterceptor()
Method Detail

checkAuthenticaion

public java.lang.Object checkAuthenticaion(javax.interceptor.InvocationContext ctx)
                                    throws java.lang.Exception
Intercepts the Method Call and Throws an Exception if Access is Not Allowed.

Parameters:
ctx - Invocation Context
Returns:
Result
Throws:
java.lang.Exception - Thrown if Access is Denied


Copyright © 2012 Bryan Saunders. All Rights Reserved.