public class OAuth2AccessDeniedException
extends OAuth2Exception
When access is denied we usually want a 403, but we want the same treatment as all the other OAuth2Exception types, so this is not a Spring Security AccessDeniedException.
Author:
Ryan Heaton, Dave Syer
See Also:
Serialized Form

Fields inherited from class org.springframework.security.oauth2.common.exceptions. OAuth2Exception

ACCESS_DENIED , DESCRIPTION , ERROR , INSUFFICIENT_SCOPE , INVALID_CLIENT , INVALID_GRANT , INVALID_REQUEST , INVALID_SCOPE , INVALID_TOKEN , REDIRECT_URI_MISMATCH , UNAUTHORIZED_CLIENT , UNSUPPORTED_GRANT_TYPE , UNSUPPORTED_RESPONSE_TYPE , URI

Methods inherited from class org.springframework.security.oauth2.common.exceptions. OAuth2Exception

addAdditionalInformation , create , getAdditionalInformation , getSummary , toString , valueOf

OAuth2AccessDeniedException

public OAuth2AccessDeniedException(String msg,
                           OAuth2ProtectedResourceDetails resource,
                           Throwable t)

getOAuth2ErrorCode

public String getOAuth2ErrorCode()
Description copied from class: OAuth2Exception
The OAuth2 error code.
Overrides:
getOAuth2ErrorCode in class OAuth2Exception
Returns:
The OAuth2 error code.

getHttpErrorCode

public int getHttpErrorCode()
Description copied from class: OAuth2Exception
The HTTP error code associated with this error.
Overrides:
getHttpErrorCode in class OAuth2Exception
Returns:
The HTTP error code associated with this error.