AbacSupport, PrincipalRolepublic class Grant extends Object implements AbacSupport, Principal
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Grant.Builder<T extends Grant.Builder> |
A fluent API builder for
Grant. |
AbacSupport.BasicAttributes| Modifier | Constructor | Description |
|---|---|---|
protected |
Grant(Grant.Builder<?> builder) |
Create an instance based on a builder.
|
protected |
Grant(String type,
String name) |
Create an instance for a type and a name.
|
protected |
Grant(String type,
String name,
AbacSupport abacSupport) |
Create an instance for a type and a name and a set of custom attributes.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Grant.Builder |
builder() |
Creates a fluent API builder to build new instances of this class.
|
Collection<String> |
getAttributeNames() |
A collection of all property names in this container.
|
Object |
getAttributeRaw(String key) |
Return the actual property value or null if not present.
|
String |
getName() |
|
String |
getType() |
Type of this grant.
|
String |
toString() |
getAttributeprotected Grant(String type, String name)
type - type of the grant (currently in use are "role" and "scope")name - name of the grant (e.g. "admin", "calendar-read" etc.)protected Grant(String type, String name, AbacSupport abacSupport)
type - type of the grant (currently in use are "role" and "scope")name - name of the grant (e.g. "admin", "calendar-read" etc.)abacSupport - container of attributes to be available to attribute based access control (e.g. "nickname")protected Grant(Grant.Builder<?> builder)
builder - builder instancepublic static Grant.Builder builder()
public Object getAttributeRaw(String key)
AbacSupportgetAttributeRaw in interface AbacSupportkey - key (name) of the propertypublic Collection<String> getAttributeNames()
AbacSupportgetAttributeNames in interface AbacSupportpublic String getType()
RoleCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.