T - type of the builder, needed for builder inheritanceRole.Builderpublic static class Grant.Builder<T extends Grant.Builder> extends java.lang.Object implements Builder<Grant>
Grant.| Modifier | Constructor | Description |
|---|---|---|
protected |
Builder() |
Create a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
T |
addAttribute(java.lang.String key,
java.lang.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(java.lang.String name) |
Name of this grant.
|
T |
origin(java.lang.String origin) |
Origin of this grant (e.g.
|
T |
type(java.lang.String type) |
Configure type of this grant.
|
public Grant build()
Builderbuild in interface Builder<T extends Grant.Builder>public T type(java.lang.String type)
type - type name, known types are "role" and "scope"public T name(java.lang.String name)
name - logical name of this grant (e.g. "admin", "calendar_read" etc.)public T origin(java.lang.String origin)
origin - who granted this grant?public T attributes(AbacSupport attribs)
attribs - Attributes to add to this grant, allowing us to extend the information known (such as "nickname",
"cn" etc.)public T addAttribute(java.lang.String key, java.lang.Object value)
key - name of the attributevalue - value of the attributeCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.