Class UnauthenticatedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.shiro.lang.ShiroException
org.apache.shiro.authz.AuthorizationException
org.apache.shiro.authz.UnauthenticatedException
- All Implemented Interfaces:
Serializable
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.
- Since:
- 0.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new UnauthenticatedException.UnauthenticatedException(String message) Constructs a new UnauthenticatedException.UnauthenticatedException(String message, Throwable cause) Constructs a new UnauthenticatedException.Constructs a new UnauthenticatedException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnauthenticatedException
public UnauthenticatedException()Creates a new UnauthenticatedException. -
UnauthenticatedException
Constructs a new UnauthenticatedException.- Parameters:
message- the reason for the exception
-
UnauthenticatedException
Constructs a new UnauthenticatedException.- Parameters:
cause- the underlying Throwable that caused this exception to be thrown.
-
UnauthenticatedException
Constructs a new UnauthenticatedException.- Parameters:
message- the reason for the exceptioncause- the underlying Throwable that caused this exception to be thrown.
-