|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.apache.shiro.ShiroException org.apache.shiro.authz.AuthorizationException org.apache.shiro.authz.UnauthenticatedException
public class UnauthenticatedException
Exception thrown when attempting to execute an authorization action when a successful authentication hasn't yet occurred.
Authorizations can only be performed after a successful authentication because authorization data (roles, permissions, etc) must always be associated with a known identity. Such a known identity can only be obtained upon a successful log-in.
Constructor Summary | |
---|---|
UnauthenticatedException()
Creates a new UnauthenticatedException. |
|
UnauthenticatedException(String message)
Constructs a new UnauthenticatedException. |
|
UnauthenticatedException(String message,
Throwable cause)
Constructs a new UnauthenticatedException. |
|
UnauthenticatedException(Throwable cause)
Constructs a new UnauthenticatedException. |
Method Summary |
---|
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 |
---|
public UnauthenticatedException()
public UnauthenticatedException(String message)
message
- the reason for the exceptionpublic UnauthenticatedException(Throwable cause)
cause
- the underlying Throwable that caused this exception to be thrown.public UnauthenticatedException(String message, Throwable cause)
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |