Package io.helidon.security
Class Grant.Builder<T extends Grant.Builder<T>>
- java.lang.Object
-
- io.helidon.security.Grant.Builder<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods 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
origin(String origin)
Origin of this grant (e.g.T
type(String type)
Configure type of this grant.
-
-
-
Method Detail
-
build
public Grant build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<T extends Grant.Builder<T>>
- Returns:
- instance of the built type
-
type
public T type(String type)
Configure type of this grant.- Parameters:
type
- type name, known types are "role" and "scope"- Returns:
- updated builder instance
-
name
public T name(String name)
Name of this grant.- Parameters:
name
- logical name of this grant (e.g. "admin", "calendar_read" etc.)- Returns:
- updated builder instance
-
origin
public T origin(String origin)
Origin of this grant (e.g. name of a system).- Parameters:
origin
- who granted this grant?- Returns:
- updated builder instance
-
attributes
public T attributes(AbacSupport attribs)
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
-
-