public abstract class AuthenticationException
extends java.lang.RuntimeException
Authentication
object being invalid for whatever
reason.Constructor and Description |
---|
AuthenticationException(java.lang.String msg)
Constructs an
AuthenticationException with the specified message and no root cause. |
AuthenticationException(java.lang.String msg,
java.lang.Object extraInformation)
Deprecated.
Use the exception message or use a custom exception if you really need additional information.
|
AuthenticationException(java.lang.String msg,
java.lang.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).
|
java.lang.Object |
getExtraInformation()
Deprecated.
Use the exception message or use a custom exception if you really need additional information.
|
void |
setAuthentication(Authentication authentication)
Deprecated.
|
public AuthenticationException(java.lang.String msg, java.lang.Throwable t)
AuthenticationException
with the specified message and root cause.msg
- the detail messaget
- the root causepublic AuthenticationException(java.lang.String msg)
AuthenticationException
with the specified message and no root cause.msg
- the detail message@Deprecated public AuthenticationException(java.lang.String msg, java.lang.Object extraInformation)
@Deprecated public Authentication getAuthentication()
null
)@Deprecated public void setAuthentication(Authentication authentication)
@Deprecated public java.lang.Object getExtraInformation()
UserDetails
object.null
@Deprecated public void clearExtraInformation()