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

org.springframework.security.oauth2.client.http.AccessTokenRequiredException Maven / Gradle / Ivy

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

import org.springframework.security.authentication.InsufficientAuthenticationException;
import org.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetails;

/**
 * 

* @deprecated See the OAuth 2.0 Migration Guide for Spring Security 5. * * @author Ryan Heaton */ @SuppressWarnings("serial") @Deprecated public class AccessTokenRequiredException extends InsufficientAuthenticationException { private final OAuth2ProtectedResourceDetails resource; public AccessTokenRequiredException(OAuth2ProtectedResourceDetails resource) { super("OAuth2 access denied."); this.resource = resource; } public AccessTokenRequiredException(String msg, OAuth2ProtectedResourceDetails resource) { super(msg); this.resource = resource; } public AccessTokenRequiredException(String msg, OAuth2ProtectedResourceDetails resource, Throwable t) { super(msg, t); this.resource = resource; } public OAuth2ProtectedResourceDetails getResource() { return resource; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy