public final class BuiltInMethods extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
inRole(Subject subject,
String role)
Check if subject has the specified role.
|
static boolean |
inRoles(Subject subject,
String... roles)
Check if subject has the specified roles (must have all of them).
|
static boolean |
inScope(Subject subject,
String scope)
Check if subject has the specified scope.
|
static boolean |
inScopes(Subject subject,
String... scopes)
Check if subject has the specified scopes (must have all of them).
|
public static boolean inRole(Subject subject, String role)
subject - subject of a user or a servicerole - role the subject should be inpublic static boolean inRoles(Subject subject, String... roles)
subject - subject of a user or a serviceroles - roles the subject should be inpublic static boolean inScope(Subject subject, String scope)
subject - subject of a userscope - scope the subject should haveCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.