001package com.nimbusds.oauth2.sdk; 002 003 004/** 005 * Enumeration of the OAuth 2.0 roles. 006 * 007 * <p>Related specifications: 008 * 009 * <ul> 010 * <li>OAuth 2.0 (RFC 6749), section 1.1. 011 * </ul> 012 */ 013public enum Role { 014 015 016 /** 017 * An entity capable of granting access to a protected resource. When 018 * the resource owner is a person, it is referred to as an end-user. 019 */ 020 RESOURCE_OWNER, 021 022 023 /** 024 * The server hosting the protected resources, capable of accepting 025 * and responding to protected resource requests using access tokens. 026 */ 027 RESOURCE_SERVER, 028 029 030 /** 031 * An application making protected resource requests on behalf of the 032 * resource owner and with its authorization. The term "client" does 033 * not imply any particular implementation characteristics (e.g. 034 * whether the application executes on a server, a desktop, or other 035 * devices). 036 */ 037 CLIENT, 038 039 040 /** 041 * The server issuing access tokens to the client after successfully 042 * authenticating the resource owner and obtaining authorization. 043 */ 044 AUTHORIZATION_SERVER 045}