org.springframework.security.authentication
Class InternalAuthenticationServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.security.core.AuthenticationException
                  extended by org.springframework.security.authentication.AuthenticationServiceException
                      extended by org.springframework.security.authentication.InternalAuthenticationServiceException
All Implemented Interfaces:
Serializable

public class InternalAuthenticationServiceException
extends AuthenticationServiceException

Thrown if an authentication request could not be processed due to a system problem that occurred internally. It differs from AuthenticationServiceException in that it would not be thrown if an external system has an internal error or failure. This ensures that we can handle errors that are within our control distinctly from errors of other systems. The advantage to this distinction is that the unrusted external system should not be able to fill up logs and cause excessive IO. However, an internal system should report errors.

This might be thrown if a backend authentication repository is unavailable, for example. However, it would not be thrown in the event that an error occurred when validating an OpenID response with an OpenID Provider.

See Also:
Serialized Form

Constructor Summary
InternalAuthenticationServiceException(String message)
           
InternalAuthenticationServiceException(String message, Throwable cause)
           
 
Method Summary
 
Methods inherited from class org.springframework.security.core.AuthenticationException
clearExtraInformation, getAuthentication, getExtraInformation, setAuthentication
 
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

InternalAuthenticationServiceException

public InternalAuthenticationServiceException(String message,
                                              Throwable cause)

InternalAuthenticationServiceException

public InternalAuthenticationServiceException(String message)