public abstract class AuthenticationException extends RuntimeException
Authentication
object being invalid for whatever
reason.Constructor and Description |
---|
AuthenticationException(String msg)
Constructs an
AuthenticationException with the specified message and no root cause. |
AuthenticationException(String msg,
Object extraInformation)
Deprecated.
Use the exception message or use a custom exception if you really need additional information.
|
AuthenticationException(String msg,
Throwable t)
Constructs an
AuthenticationException with the specified message and root cause. |
Modifier and Type | Method and Description |
---|---|
void |
clearExtraInformation()
Deprecated.
|
Authentication |
getAuthentication()
Deprecated.
to avoid potential leaking of sensitive information (e.g. through serialization/remoting).
|
Object |
getExtraInformation()
Deprecated.
Use the exception message or use a custom exception if you really need additional information.
|
void |
setAuthentication(Authentication authentication)
Deprecated.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AuthenticationException(String msg, Throwable t)
AuthenticationException
with the specified message and root cause.msg
- the detail messaget
- the root causepublic AuthenticationException(String msg)
AuthenticationException
with the specified message and no root cause.msg
- the detail message@Deprecated public AuthenticationException(String msg, Object extraInformation)
@Deprecated public Authentication getAuthentication()
null
)@Deprecated public void setAuthentication(Authentication authentication)
@Deprecated public Object getExtraInformation()
UserDetails
object.null
@Deprecated public void clearExtraInformation()