All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.springframework.security.oauth2.client.filter.OAuth2AuthenticationFailureEvent Maven / Gradle / Ivy

There is a newer version: 2.5.2.RELEASE
Show newest version
package org.springframework.security.oauth2.client.filter;

import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.authentication.event.AbstractAuthenticationFailureEvent;
import org.springframework.security.core.AuthenticationException;

/**
 * 

* @deprecated See the OAuth 2.0 Migration Guide for Spring Security 5. * */ @SuppressWarnings("serial") @Deprecated public class OAuth2AuthenticationFailureEvent extends AbstractAuthenticationFailureEvent { public OAuth2AuthenticationFailureEvent(AuthenticationException exception) { super(new FailedOAuthClientAuthentication(), exception); } } @SuppressWarnings("serial") class FailedOAuthClientAuthentication extends AbstractAuthenticationToken { public FailedOAuthClientAuthentication() { super(null); } @Override public Object getCredentials() { return ""; } @Override public Object getPrincipal() { return "UNKNOWN"; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy