Module io.helidon.security
Package io.helidon.security
Class Grant.Builder<B extends Grant.Builder<B>>
java.lang.Object
io.helidon.security.Grant.Builder<B>
- Type Parameters:
B
- type of the builder, needed for builder inheritance
- Direct Known Subclasses:
Role.Builder
- Enclosing class:
Grant
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttribute
(String key, Object value) Add and attribute to this grant.attributes
(AbacSupport attribs) Attributes of this grant.build()
Build the instance from this builder.Name of this grant.Origin of this grant (e.g.Configure type of this grant.
-
Constructor Details
-
Builder
protected Builder()Create a new instance.
-
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder. -
type
Configure type of this grant.- Parameters:
type
- type name, known types are "role" and "scope"- Returns:
- updated builder instance
-
name
Name of this grant.- Parameters:
name
- logical name of this grant (e.g. "admin", "calendar_read" etc.)- Returns:
- updated builder instance
-
origin
Origin of this grant (e.g. name of a system).- Parameters:
origin
- who granted this grant?- Returns:
- updated builder instance
-
attributes
Attributes of this grant.- Parameters:
attribs
- Attributes to add to this grant, allowing us to extend the information known (such as "nickname", "cn" etc.)- Returns:
- updated builder instance
-
addAttribute
Add and attribute to this grant.- Parameters:
key
- name of the attributevalue
- value of the attribute- Returns:
- updated builder instance
-