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 *
013 * @author Vladimir Dzhuvinov
014 */
015public enum Role {
016
017
018        /**
019         * An entity capable of granting access to a protected resource. When 
020         * the resource owner is a person, it is referred to as an end-user.
021         */
022        RESOURCE_OWNER,
023
024
025        /**
026         * The server hosting the protected resources, capable of accepting
027         * and responding to protected resource requests using access tokens.
028         */
029        RESOURCE_SERVER,
030
031
032        /**
033         * An application making protected resource requests on behalf of the
034         * resource owner and with its authorization.  The term "client" does
035         * not imply any particular implementation characteristics (e.g.
036         * whether the application executes on a server, a desktop, or other
037         * devices).
038         */
039        CLIENT,
040
041
042        /**
043         * The server issuing access tokens to the client after successfully
044         * authenticating the resource owner and obtaining authorization.
045         */
046        AUTHORIZATION_SERVER
047}