public final class Scope extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION
Authorization scope for the application resource.
|
static String |
APPLICATION_ADMIN
Administration scope for the application resource.
|
static String |
AUTHENTICATOR
Authorization scope for the authenticator resource.
|
static String |
AUTHENTICATOR_ADMIN
Authorization scope for the authenticator resource.
|
static String |
CLIENT
Authorization scope for the client resource.
|
static String |
CLIENT_ADMIN
Administration scope for the client resource.
|
static String |
IDENTITY
Authorization scope for the identity resource.
|
static String |
IDENTITY_ADMIN
Administration scope for the identity resource.
|
static String |
ROLE
Authorization scope for the roles resource.
|
static String |
ROLE_ADMIN
Administration scope for the roles resource.
|
static String |
SCOPE
Authorization scope for the scopes resource (not to be mistaken with
this class).
|
static String |
SCOPE_ADMIN
Administration scope for the scopes resource (not to be mistaken with
this class).
|
static String |
TOKEN
Authorization scope for the token resource.
|
static String |
TOKEN_ADMIN
Administration scope for the token resource.
|
static String |
USER
Authorization scope for the user resource.
|
static String |
USER_ADMIN
Administration scope for the user resource.
|
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
adminScopes()
List of all scopes granted to admins.
|
static List<String> |
allScopes()
Get a list of all the scopes.
|
static String |
forEntity(AbstractAuthzEntity entity,
Boolean admin)
Determine the required scope for the given entity.
|
static List<String> |
userScopes()
List of all scopes granted to users.
|
public static final String USER
public static final String USER_ADMIN
public static final String APPLICATION
public static final String APPLICATION_ADMIN
public static final String AUTHENTICATOR
public static final String AUTHENTICATOR_ADMIN
public static final String CLIENT
public static final String CLIENT_ADMIN
public static final String IDENTITY
public static final String IDENTITY_ADMIN
public static final String TOKEN
public static final String TOKEN_ADMIN
public static final String ROLE
public static final String ROLE_ADMIN
public static final String SCOPE
public static final String SCOPE_ADMIN
public static List<String> allScopes()
public static List<String> adminScopes()
public static List<String> userScopes()
public static String forEntity(AbstractAuthzEntity entity, Boolean admin)
entity - The entity to check.admin - Whether to get the admin role or the regular one.Copyright © 2018 krotscheck.net. All rights reserved.