Package com.artipie.management
Interface Users
-
public interface Users
Artipie credentials.- Since:
- 0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Users.PasswordFormat
Password format.static class
Users.User
User.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionStage<Void>
add(Users.User user, String pswd, Users.PasswordFormat format)
Adds user to artipie users.CompletionStage<com.artipie.http.auth.Authentication>
auth()
Provides authorization.CompletionStage<List<Users.User>>
list()
Artipie users list.CompletionStage<Void>
remove(String username)
Removes user from artipie users.
-
-
-
Method Detail
-
list
CompletionStage<List<Users.User>> list()
Artipie users list.- Returns:
- Yaml as completion action
-
add
CompletionStage<Void> add(Users.User user, String pswd, Users.PasswordFormat format)
Adds user to artipie users.- Parameters:
user
- User infopswd
- Passwordformat
- Password format- Returns:
- Completion add action
-
remove
CompletionStage<Void> remove(String username)
Removes user from artipie users.- Parameters:
username
- User to delete- Returns:
- Completion remove action
-
auth
CompletionStage<com.artipie.http.auth.Authentication> auth()
Provides authorization.- Returns:
- Authentication instance
-
-