Example usage for org.springframework.security.oauth2.common.exceptions OAuth2Exception ACCESS_DENIED

List of usage examples for org.springframework.security.oauth2.common.exceptions OAuth2Exception ACCESS_DENIED

Introduction

In this page you can find the example usage for org.springframework.security.oauth2.common.exceptions OAuth2Exception ACCESS_DENIED.

Prototype

String ACCESS_DENIED

To view the source code for org.springframework.security.oauth2.common.exceptions OAuth2Exception ACCESS_DENIED.

Click Source Link

Usage

From source file:org.springframework.security.oauth2.common.exception.OAuth2ExceptionJackson2DeserializerTests.java

@Test
public void readValueAccessDenied() throws Exception {
    String accessToken = createResponse(OAuth2Exception.ACCESS_DENIED);
    UserDeniedAuthorizationException result = (UserDeniedAuthorizationException) mapper.readValue(accessToken,
            OAuth2Exception.class);
    assertEquals(DETAILS, result.getMessage());
    assertEquals(null, result.getAdditionalInformation());
}