if (securityContext.getAuthentication() != null) {
securityContext.setAuthentication(null);
authenticatedBySelf.set(false);
- if (log.isTraceEnabled())
+ if (log.isTraceEnabled()) {
log.trace("System deauthenticated");
+ // Thread.dumpStack();
+ }
}
}
+ /** Whether the current thread was authenticated by this component. */
+ protected Boolean isAuthenticatedBySelf() {
+ return authenticatedBySelf.get();
+ }
+
public void setAuthenticationManager(
AuthenticationManager authenticationManager) {
this.authenticationManager = authenticationManager;