org.apache.shiro.authz
Class UnauthenticatedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.shiro.ShiroException
                  extended by org.apache.shiro.authz.AuthorizationException
                      extended by org.apache.shiro.authz.UnauthenticatedException
All Implemented Interfaces:
Serializable

public class UnauthenticatedException
extends AuthorizationException

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:
Serialized Form

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

UnauthenticatedException

public UnauthenticatedException()
Creates a new UnauthenticatedException.


UnauthenticatedException

public UnauthenticatedException(String message)
Constructs a new UnauthenticatedException.

Parameters:
message - the reason for the exception

UnauthenticatedException

public UnauthenticatedException(Throwable cause)
Constructs a new UnauthenticatedException.

Parameters:
cause - the underlying Throwable that caused this exception to be thrown.

UnauthenticatedException

public UnauthenticatedException(String message,
                                Throwable cause)
Constructs a new UnauthenticatedException.

Parameters:
message - the reason for the exception
cause - the underlying Throwable that caused this exception to be thrown.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.