Package org.acegisecurity.event.authorization

Examples of org.acegisecurity.event.authorization.AuthorizationFailureEvent


      try {
        returnedObject = afterInvocationManager.decide(token.getAuthentication(), token.getSecureObject(),
            token.getAttr(), returnedObject);
      }
      catch (AccessDeniedException accessDeniedException) {
        AuthorizationFailureEvent event = new AuthorizationFailureEvent(token.getSecureObject(), token
            .getAttr(), token.getAuthentication(), accessDeniedException);
        publishEvent(event);

        throw accessDeniedException;
      }
View Full Code Here


    // Attempt authorization
    try {
      this.accessDecisionManager.decide(authenticated, object, attr);
    }
    catch (AccessDeniedException accessDeniedException) {
      AuthorizationFailureEvent event = new AuthorizationFailureEvent(object, attr, authenticated,
          accessDeniedException);
      publishEvent(event);

      throw accessDeniedException;
    }
View Full Code Here

            // Attempt authorization
            try {
                this.accessDecisionManager.decide(authenticated, object,
                    attr);
            } catch (AccessDeniedException accessDeniedException) {
                AuthorizationFailureEvent event = new AuthorizationFailureEvent(object,
                        attr, authenticated, accessDeniedException);
                this.eventPublisher.publishEvent(event);

                throw accessDeniedException;
            }
View Full Code Here

TOP

Related Classes of org.acegisecurity.event.authorization.AuthorizationFailureEvent

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.