Package org.jcsp.net.security
Class AccessDeniedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jcsp.net.security.AccessDeniedException
-
- All Implemented Interfaces:
java.io.Serializable
public class AccessDeniedException extends java.lang.Exception
Thrown by the security authority implementations if the credentials supplied are not correct or another error occurs as a result of user parameters.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private SecurityAuthority
auth
The security authority raising the exception.private java.lang.String
reason
The reason the exception was raised.
-
Constructor Summary
Constructors Constructor Description AccessDeniedException(SecurityAuthority auth, java.lang.String reason)
Creates a new exeception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
Returns a printable string describing the exception.
-
-
-
Field Detail
-
reason
private final java.lang.String reason
The reason the exception was raised.
-
auth
private final SecurityAuthority auth
The security authority raising the exception.
-
-
Constructor Detail
-
AccessDeniedException
public AccessDeniedException(SecurityAuthority auth, java.lang.String reason)
Creates a new exeception.- Parameters:
auth
- the authority raising the exception.reason
- the reason the exception was raised.
-
-