net.bryansaunders.jee6divelog.security.interceptor
Class HasRolesInterceptor

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

@Interceptor
public class HasRolesInterceptor
extends java.lang.Object

HasRole Interceptor.

Author:
Bryan Saunders

Constructor Summary
HasRolesInterceptor()
           
 
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

HasRolesInterceptor

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