org.apache.james
Class AuthenticationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.apache.james.AuthenticationException
All Implemented Interfaces:
java.io.Serializable

public class AuthenticationException
extends java.lang.Exception

Thrown when a user fails to authenticate either because their identity is not recognised or because their credentials are wrong.

Version:
0.1 on 14 Dec 2000
Author:
Charles Benett
See Also:
Serialized Form

Constructor Summary
AuthenticationException(java.lang.String message, boolean unknownUser, boolean credentialsFailed)
          Construct a new AuthenticationException instance.
 
Method Summary
 boolean isBadCredentials()
           
 boolean isUserNotKnown()
           
 
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

AuthenticationException

public AuthenticationException(java.lang.String message,
                               boolean unknownUser,
                               boolean credentialsFailed)
Construct a new AuthenticationException instance.

Parameters:
message - The detail message for this exception (mandatory).
Method Detail

isUserNotKnown

public boolean isUserNotKnown()

isBadCredentials

public boolean isBadCredentials()


"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."