org.jasig.cas.authentication.handler
Class BadCredentialsAuthenticationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.jasig.cas.authentication.handler.AuthenticationException
              extended byorg.jasig.cas.authentication.handler.BadCredentialsAuthenticationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BadUsernameOrPasswordAuthenticationException

public class BadCredentialsAuthenticationException
extends AuthenticationException

Generic Bad Credentials Exception. This can be thrown when the system knows the credentials are not valid specificially because they are bad. Subclasses can be specific to a certain type of Credentials (BadUsernamePassowrdCredentials).

Since:
3.0
Version:
$Revision$ $Date$
Author:
Scott Battaglia
See Also:
Serialized Form

Field Summary
static BadCredentialsAuthenticationException ERROR
          Static instance of class to prevent cost incurred by creating new instance.
 
Constructor Summary
BadCredentialsAuthenticationException()
          Default constructor that does not allow the chaining of exceptions and uses the default code as the error code for this exception.
BadCredentialsAuthenticationException(java.lang.String code)
          Constructor method to allow for providing a custom code to associate with this exception.
BadCredentialsAuthenticationException(java.lang.String code, java.lang.Throwable throwable)
          Constructor to allow for the chaining of exceptions and use of a non-default code.
BadCredentialsAuthenticationException(java.lang.Throwable throwable)
          Constructor to allow for the chaining of exceptions.
 
Methods inherited from class org.jasig.cas.authentication.handler.AuthenticationException
getCode, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR

public static final BadCredentialsAuthenticationException ERROR
Static instance of class to prevent cost incurred by creating new instance.

Constructor Detail

BadCredentialsAuthenticationException

public BadCredentialsAuthenticationException()
Default constructor that does not allow the chaining of exceptions and uses the default code as the error code for this exception.


BadCredentialsAuthenticationException

public BadCredentialsAuthenticationException(java.lang.Throwable throwable)
Constructor to allow for the chaining of exceptions. Constructor defaults to default code.

Parameters:
throwable - the chainable exception.

BadCredentialsAuthenticationException

public BadCredentialsAuthenticationException(java.lang.String code)
Constructor method to allow for providing a custom code to associate with this exception.

Parameters:
code - the code to use.

BadCredentialsAuthenticationException

public BadCredentialsAuthenticationException(java.lang.String code,
                                             java.lang.Throwable throwable)
Constructor to allow for the chaining of exceptions and use of a non-default code.

Parameters:
code - the user-specified code.
throwable - the chainable exception.


Copyright © 2004-2005 Java Architectures Special Interest Group. All Rights Reserved.