| Modifier | Constructor | Description |
|---|---|---|
protected |
Builder() |
Create a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
T |
addAttribute(String key,
Object value) |
Add and attribute to this grant.
|
T |
attributes(AbacSupport attribs) |
Attributes of this grant.
|
Grant |
build() |
Build the instance from this builder.
|
T |
name(String name) |
Name of this grant.
|
T |
type(String type) |
Configure type of this grant.
|
public Grant build()
Builderbuild in interface Builder<T extends Grant.Builder>public T type(String type)
type - type name, known types are "role" and "scope"public T name(String name)
name - logical name of this grant (e.g. "admin", "calendar_read" etc.)public T attributes(AbacSupport attribs)
attribs - Attributes to add to this grant, allowing us to extend the information known (such as "nickname",
"cn" etc.)Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.