Package com.adaptrex.core.security.annotation

Examples of com.adaptrex.core.security.annotation.SecureRoles


  private static Logger log = LoggerFactory.getLogger(SecureRolesInterceptor.class);
 
  @AroundInvoke
    public Object checkSecure(InvocationContext ctx) throws Exception {
    SecureRoles a = ctx.getMethod().getAnnotation(SecureRoles.class);
   
    Subject subject = SecurityUtils.getSubject();
    if (!subject.isAuthenticated()) {
      log.debug("Group Not Authorized for: Anonymous @ " +
          ctx.getMethod().getDeclaringClass() + "." + ctx.getMethod().getName() + "()");
View Full Code Here

TOP

Related Classes of com.adaptrex.core.security.annotation.SecureRoles

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.