public static final class HasRoleRequest.Options extends Object
NO_ERROR_IF_NOT_EXISTS: If false will return an error if the
provided role does not exist or is blank. If true then
it will return false for hasRole.
Supported values:
The default value is FALSE.
ONLY_DIRECT: If
false will search recursively if the principal is a
member of role. If true then principal must
directly be a member of role.
Supported values:
The default value is FALSE.
Map.
A set of string constants for the parameter options.| Modifier and Type | Field and Description |
|---|---|
static String |
FALSE |
static String |
NO_ERROR_IF_NOT_EXISTS
If
false will return an error if the provided role
does not exist or is blank. |
static String |
ONLY_DIRECT
If
false will search recursively if the principal is
a member of role. |
static String |
TRUE |
public static final String NO_ERROR_IF_NOT_EXISTS
false will return an error if the provided role
does not exist or is blank. If true then it will return
false for hasRole.
Supported values:
The default value is FALSE.public static final String TRUE
public static final String FALSE
public static final String ONLY_DIRECT
false will search recursively if the principal is
a member of role. If true then principal
must directly be a member of role.
Supported values:
The default value is FALSE.Copyright © 2024. All rights reserved.