mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-01 00:02:13 +00:00
SEC-887: Added setter method for account status checker.
This commit is contained in:
parent
af5f193ec1
commit
c56d524bd9
@ -88,7 +88,6 @@ public class PreAuthenticatedAuthenticationProvider implements AuthenticationPro
|
|||||||
result.setDetails(authentication.getDetails());
|
result.setDetails(authentication.getDetails());
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -123,4 +122,14 @@ public class PreAuthenticatedAuthenticationProvider implements AuthenticationPro
|
|||||||
public void setThrowExceptionWhenTokenRejected(boolean throwExceptionWhenTokenRejected) {
|
public void setThrowExceptionWhenTokenRejected(boolean throwExceptionWhenTokenRejected) {
|
||||||
this.throwExceptionWhenTokenRejected = throwExceptionWhenTokenRejected;
|
this.throwExceptionWhenTokenRejected = throwExceptionWhenTokenRejected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the strategy which will be used to validate the loaded <tt>UserDetails</tt> object
|
||||||
|
* for the user. Defaults to an {@link AccountStatusUserDetailsChecker}.
|
||||||
|
* @param userDetailsChecker
|
||||||
|
*/
|
||||||
|
public void setUserDetailsChecker(UserDetailsChecker userDetailsChecker) {
|
||||||
|
Assert.notNull(userDetailsChecker, "userDetailsChacker cannot be null");
|
||||||
|
this.userDetailsChecker = userDetailsChecker;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user