JSecurity

org.jsecurity.authz
Class HostUnauthorizedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jsecurity.JSecurityException
                  extended by org.jsecurity.authz.AuthorizationException
                      extended by org.jsecurity.authz.UnauthorizedException
                          extended by org.jsecurity.authz.HostUnauthorizedException
All Implemented Interfaces:
Serializable

public class HostUnauthorizedException
extends UnauthorizedException

Thrown when a particular client (that is, host address) has not been enabled to access the system or if the client has been enabled access but is not permitted to perform a particluar operation or access a particular resource.

Since:
0.1
Author:
Les Hazlewood
See Also:
SessionFactory.start(java.net.InetAddress), Serialized Form

Constructor Summary
HostUnauthorizedException()
          Creates a new HostUnauthorizedException.
HostUnauthorizedException(InetAddress hostAddress)
          Constructs a new HostUnauthorizedException associated with the given host address.
HostUnauthorizedException(String message)
          Constructs a new HostUnauthorizedException.
HostUnauthorizedException(String message, Throwable cause)
          Constructs a new HostUnauthorizedException.
HostUnauthorizedException(Throwable cause)
          Constructs a new HostUnauthorizedException.
 
Method Summary
 InetAddress getHostAddress()
          Returns the host address associated with this exception.
 void setHostAddress(InetAddress hostAddress)
          Sets the host address associated with this exception.
 
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

HostUnauthorizedException

public HostUnauthorizedException()
Creates a new HostUnauthorizedException.


HostUnauthorizedException

public HostUnauthorizedException(String message)
Constructs a new HostUnauthorizedException.

Parameters:
message - the reason for the exception

HostUnauthorizedException

public HostUnauthorizedException(Throwable cause)
Constructs a new HostUnauthorizedException.

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

HostUnauthorizedException

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

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

HostUnauthorizedException

public HostUnauthorizedException(InetAddress hostAddress)
Constructs a new HostUnauthorizedException associated with the given host address.

Parameters:
hostAddress - the address of the host unauthorized to perform a particular action or access a particular resource.
Method Detail

getHostAddress

public InetAddress getHostAddress()
Returns the host address associated with this exception.

Returns:
the host address associated with this exception.

setHostAddress

public void setHostAddress(InetAddress hostAddress)
Sets the host address associated with this exception.

Parameters:
hostAddress - the host address associated with this exception.

JSecurity

Copyright © 2004-2008 JSecurity.