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 protectedBuilder()Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaddAttribute(String key, Object value)Add and attribute to this grant.Tattributes(AbacSupport attribs)Attributes of this grant.Grantbuild()Build the instance from this builder.Tname(String name)Name of this grant.Torigin(String origin)Origin of this grant (e.g.Ttype(String type)Configure type of this grant.
-
-
-
Method Detail
-
build
public Grant build()
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin 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
-
-