Module io.inverno.mod.security
Class User.Builder<A extends Identity>
java.lang.Object
io.inverno.mod.security.authentication.user.User.Builder<A>
- Type Parameters:
A
- the identity type
A builder used to build users.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the user.Specifies the user groups.groups
(Collection<String> groups) Specifies the user groups.<B extends Identity>
User.Builder<B> identity
(B identity) Specifies the identity of the user.locked
(boolean locked) Specifies whether to create a locked user.Specifies the user password.
-
Method Details
-
identity
Specifies the identity of the user.
- Type Parameters:
B
- the identity type- Parameters:
identity
- the user identity- Returns:
- this builder
-
password
Specifies the user password.
- Parameters:
password
- the user password- Returns:
- this builder
-
groups
Specifies the user groups.
- Parameters:
groups
- an array of groups- Returns:
- this builder
-
groups
Specifies the user groups.
- Parameters:
groups
- a collection of groups- Returns:
- this builder
-
locked
Specifies whether to create a locked user.
- Parameters:
locked
- true to create a locked user, false otherwise- Returns:
- this builder
-
build
Builds the user.
- Returns:
- a new user
-