org.apache.myfaces.extensions.cdi.core.api.security
Class AccessDeniedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.SecurityException
                  extended by org.apache.myfaces.extensions.cdi.core.api.security.AccessDeniedException
All Implemented Interfaces:
Serializable

public class AccessDeniedException
extends SecurityException

Exception occurs in case of a security-violation. It's aware of the reason for the violation as well as the error-view which should be used to display the restriction.

Author:
Gerhard Petracek
See Also:
Serialized Form

Constructor Summary
AccessDeniedException(Set<SecurityViolation> violations, Class<? extends ViewConfig> errorView)
           
 
Method Summary
 Class<? extends ViewConfig> getErrorView()
           
 Set<SecurityViolation> getViolations()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccessDeniedException

public AccessDeniedException(Set<SecurityViolation> violations,
                             Class<? extends ViewConfig> errorView)
Method Detail

getViolations

public Set<SecurityViolation> getViolations()

getErrorView

public Class<? extends ViewConfig> getErrorView()


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.