Builder<RoleValidator.RoleConfig>public static class RoleValidator.RoleConfig.Builder extends java.lang.Object implements Builder<RoleValidator.RoleConfig>
RoleValidator.RoleConfig.| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
RoleValidator.RoleConfig.Builder |
addRole(java.lang.String role) |
Add a role to the list of roles for a user subject.
|
RoleValidator.RoleConfig.Builder |
addRoles(java.util.Collection<java.lang.String> rolesAllowed) |
Add a collection of roles for user subject to this builder.
|
RoleValidator.RoleConfig.Builder |
addServiceRoles(java.util.Collection<java.lang.String> rolesAllowed) |
Add a collection of roles for service subject to this builder.
|
RoleValidator.RoleConfig |
build() |
Build the instance from this builder.
|
RoleValidator.RoleConfig.Builder |
from(Config config) |
Load configuration data from configuration.
|
public RoleValidator.RoleConfig build()
Builderbuild in interface Builder<RoleValidator.RoleConfig>public RoleValidator.RoleConfig.Builder addRoles(java.util.Collection<java.lang.String> rolesAllowed)
rolesAllowed - collection of roles, iterator order will be preserved for checking the rolespublic RoleValidator.RoleConfig.Builder addRole(java.lang.String role)
role - a role, order of calls to this method will be preservedpublic RoleValidator.RoleConfig.Builder addServiceRoles(java.util.Collection<java.lang.String> rolesAllowed)
rolesAllowed - collection of roles, iterator order will be preserved for checking the rolespublic RoleValidator.RoleConfig.Builder from(Config config)
config - configuration located the key of this attribute configCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.