javax.security.sasl
Class AuthenticationException

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.lang.Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable 
      extended by java.lang.Exception sample code for java.lang.Exception definition code for java.lang.Exception 
          extended by java.io.IOException sample code for java.io.IOException definition code for java.io.IOException 
              extended by javax.security.sasl.SaslException sample code for javax.security.sasl.SaslException definition code for javax.security.sasl.SaslException 
                  extended by javax.security.sasl.AuthenticationException
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class AuthenticationException
extends SaslException sample code for javax.security.sasl.SaslException definition code for javax.security.sasl.SaslException

This exception is thrown by a SASL mechanism implementation to indicate that the SASL exchange has failed due to reasons related to authentication, such as an invalid identity, passphrase, or key.

Note that the lack of an AuthenticationException does not mean that the failure was not due to an authentication error. A SASL mechanism implementation might throw the more general SaslException instead of AuthenticationException if it is unable to determine the nature of the failure, or if does not want to disclose the nature of the failure, for example, due to security reasons.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
AuthenticationException sample code for javax.security.sasl.AuthenticationException.AuthenticationException() definition code for javax.security.sasl.AuthenticationException.AuthenticationException() ()
          Constructs a new instance of AuthenticationException.
AuthenticationException sample code for javax.security.sasl.AuthenticationException.AuthenticationException(java.lang.String) definition code for javax.security.sasl.AuthenticationException.AuthenticationException(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  detail)
          Constructs a new instance of AuthenticationException with a detailed message.
AuthenticationException sample code for javax.security.sasl.AuthenticationException.AuthenticationException(java.lang.String, java.lang.Throwable) definition code for javax.security.sasl.AuthenticationException.AuthenticationException(java.lang.String, java.lang.Throwable) (String sample code for java.lang.String definition code for java.lang.String  detail, Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable  ex)
          Constructs a new instance of AuthenticationException with a detailed message and a root exception.
 
Method Summary
 
Methods inherited from class javax.security.sasl.SaslException sample code for javax.security.sasl.SaslException definition code for javax.security.sasl.SaslException
getCause sample code for javax.security.sasl.SaslException.getCause() definition code for javax.security.sasl.SaslException.getCause() , initCause sample code for javax.security.sasl.SaslException.initCause(java.lang.Throwable) definition code for javax.security.sasl.SaslException.initCause(java.lang.Throwable) , toString sample code for javax.security.sasl.SaslException.toString() definition code for javax.security.sasl.SaslException.toString()
 
Methods inherited from class java.lang.Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable
fillInStackTrace sample code for java.lang.Throwable.fillInStackTrace() definition code for java.lang.Throwable.fillInStackTrace() , getLocalizedMessage sample code for java.lang.Throwable.getLocalizedMessage() definition code for java.lang.Throwable.getLocalizedMessage() , getMessage sample code for java.lang.Throwable.getMessage() definition code for java.lang.Throwable.getMessage() , getStackTrace sample code for java.lang.Throwable.getStackTrace() definition code for java.lang.Throwable.getStackTrace() , printStackTrace sample code for java.lang.Throwable.printStackTrace() definition code for java.lang.Throwable.printStackTrace() , printStackTrace sample code for java.lang.Throwable.printStackTrace(java.io.PrintStream) definition code for java.lang.Throwable.printStackTrace(java.io.PrintStream) , printStackTrace sample code for java.lang.Throwable.printStackTrace(java.io.PrintWriter) definition code for java.lang.Throwable.printStackTrace(java.io.PrintWriter) , setStackTrace sample code for java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[]) definition code for java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[])
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

AuthenticationException sample code for javax.security.sasl.AuthenticationException() definition code for javax.security.sasl.AuthenticationException()

public AuthenticationException()
Constructs a new instance of AuthenticationException. The root exception and the detailed message are null.


AuthenticationException sample code for javax.security.sasl.AuthenticationException(java.lang.String) definition code for javax.security.sasl.AuthenticationException(java.lang.String)

public AuthenticationException(String sample code for java.lang.String definition code for java.lang.String  detail)
Constructs a new instance of AuthenticationException with a detailed message. The root exception is null.

Parameters:
detail - A possibly null string containing details of the exception.
See Also:
Throwable.getMessage() sample code for java.lang.Throwable.getMessage() definition code for java.lang.Throwable.getMessage()

AuthenticationException sample code for javax.security.sasl.AuthenticationException(java.lang.String, java.lang.Throwable) definition code for javax.security.sasl.AuthenticationException(java.lang.String, java.lang.Throwable)

public AuthenticationException(String sample code for java.lang.String definition code for java.lang.String  detail,
                               Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable  ex)
Constructs a new instance of AuthenticationException with a detailed message and a root exception.

Parameters:
detail - A possibly null string containing details of the exception.
ex - A possibly null root exception that caused this exception.
See Also:
Throwable.getMessage() sample code for java.lang.Throwable.getMessage() definition code for java.lang.Throwable.getMessage() , SaslException.getCause() sample code for javax.security.sasl.SaslException.getCause() definition code for javax.security.sasl.SaslException.getCause()