mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 13:32:30 +00:00
Deprecate storage of Authentication object in AuthenticationException.
This commit is contained in:
parent
b60367e30c
commit
8fd2963e6b
@ -64,11 +64,14 @@ public abstract class AuthenticationException extends RuntimeException {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The authentication request which this exception corresponds to (may be {@code null})
|
* The authentication request which this exception corresponds to (may be {@code null})
|
||||||
|
* @deprecated to avoid potential leaking of sensitive information (e.g. through serialization/remoting).
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public Authentication getAuthentication() {
|
public Authentication getAuthentication() {
|
||||||
return authentication;
|
return authentication;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public void setAuthentication(Authentication authentication) {
|
public void setAuthentication(Authentication authentication) {
|
||||||
this.authentication = authentication;
|
this.authentication = authentication;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user