mitreid-connect
|
静的公開メンバ関数 | |
static void | ensureOAuthScope (Authentication auth, String scope) |
static boolean | isAdmin (Authentication auth) |
static boolean | hasRole (Authentication auth, String role) |
Utility class to enforce OAuth scopes in authenticated requests.
|
inlinestatic |
Makes sure the authentication contains the given scope, throws an exception otherwise
auth | the authentication object to check |
scope | the scope to look for |
InsufficientScopeException | if the authentication does not contain that scope |
|
inlinestatic |
|
inlinestatic |