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