AuthResponseStatus.java 892 字节
Newer Older
智布道's avatar
智布道 已提交
1
package me.zhyd.oauth.model;
智布道's avatar
智布道 已提交
2 3 4 5 6 7

/**
 * @author yadong.zhang (yadong.zhang0415(a)gmail.com)
 * @version 1.0
 * @since 1.8
 */
智布道's avatar
智布道 已提交
8
public enum AuthResponseStatus {
9
    SUCCESS(2000, "Success"),
智布道's avatar
智布道 已提交
10
    FAILURE(5000, "Failure"),
智布道's avatar
智布道 已提交
11
    NOT_IMPLEMENTED(5001, "Not Implemented"),
智布道's avatar
智布道 已提交
12 13
    PARAMETER_INCOMPLETE(5002, "Parameter incomplete"),
    UNSUPPORTED(5003, "Unsupported operation"),
14 15
    NO_AUTH_SOURCE(5004, "AuthSource cannot be null"),
    UNIDENTIFIED_PLATFORM(5005, "Unidentified platform"),
16
    ILLEGAL_REDIRECT_URI(5006, "Illegal redirect uri"),
17 18
    ILLEGAL_REQUEST(5007, "Illegal request"),
    ILLEGAL_CODE(5008, "Illegal code"),
智布道's avatar
智布道 已提交
19 20 21 22 23
    ;

    private int code;
    private String msg;

智布道's avatar
智布道 已提交
24
    AuthResponseStatus(int code, String msg) {
智布道's avatar
智布道 已提交
25 26 27 28 29 30 31 32 33 34 35 36 37
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}