org.apache.deltaspike.security.api.authorization
Class AccessDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.SecurityException
org.apache.deltaspike.security.api.authorization.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.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
AccessDeniedException
public AccessDeniedException(Set<SecurityViolation> violations)
- Constructor for creating the exception for the given violations and error-view
- Parameters:
violations - current violations
getViolations
public Set<SecurityViolation> getViolations()
- All
SecurityViolation which were found by a AccessDecisionVoter
- Returns:
- all security-violations
Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.