org.springframework.security.oauth2.common.exceptions.UserDeniedAuthorizationException.java Source code

Java tutorial

Introduction

Here is the source code for org.springframework.security.oauth2.common.exceptions.UserDeniedAuthorizationException.java

Source

package org.springframework.security.oauth2.common.exceptions;

/**
 * @author Ryan Heaton
 */
@SuppressWarnings("serial")
public class UserDeniedAuthorizationException extends OAuth2Exception {

    public UserDeniedAuthorizationException(String msg, Throwable t) {
        super(msg, t);
    }

    public UserDeniedAuthorizationException(String msg) {
        super(msg);
    }

    @Override
    public String getOAuth2ErrorCode() {
        return "access_denied";
    }

}