|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.core.AuthenticationException
public abstract class AuthenticationException
Abstract superclass for all exceptions related to an Authentication
object being invalid for whatever
reason.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
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 |
---|
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)
Method Detail |
---|
@Deprecated public Authentication getAuthentication()
null
)
@Deprecated public void setAuthentication(Authentication authentication)
@Deprecated public Object getExtraInformation()
UserDetails
object.
null
@Deprecated public void clearExtraInformation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |