Package org.infinispan.cli.user
Class UserTool
- java.lang.Object
-
- org.infinispan.cli.user.UserTool
-
public class UserTool extends Object
- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserTool.Encryption
-
Field Summary
Fields Modifier and Type Field Description static List<String>DEFAULT_ALGORITHMSstatic StringDEFAULT_GROUPS_PROPERTIES_FILEstatic StringDEFAULT_REALM_NAMEstatic StringDEFAULT_SERVER_ROOTstatic StringDEFAULT_USERS_PROPERTIES_FILEstatic Supplier<Provider[]>PROVIDERS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcheckRealm(String realm)voidcreateUser(String username, String password, String realm, UserTool.Encryption encryption, List<String> userGroups, List<String> algorithms)StringdescribeUser(String username)voidencryptAll(List<String> algorithms)List<String>listGroups()List<String>listUsers()voidmodifyUser(String username, String password, String realm, UserTool.Encryption encryption, List<String> userGroups, List<String> algorithms)voidreload()voidremoveUser(String username)
-
-
-
Field Detail
-
DEFAULT_USERS_PROPERTIES_FILE
public static final String DEFAULT_USERS_PROPERTIES_FILE
- See Also:
- Constant Field Values
-
DEFAULT_GROUPS_PROPERTIES_FILE
public static final String DEFAULT_GROUPS_PROPERTIES_FILE
- See Also:
- Constant Field Values
-
DEFAULT_REALM_NAME
public static final String DEFAULT_REALM_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SERVER_ROOT
public static final String DEFAULT_SERVER_ROOT
- See Also:
- Constant Field Values
-
-
Method Detail
-
reload
public void reload()
-
createUser
public void createUser(String username, String password, String realm, UserTool.Encryption encryption, List<String> userGroups, List<String> algorithms)
-
removeUser
public void removeUser(String username)
-
modifyUser
public void modifyUser(String username, String password, String realm, UserTool.Encryption encryption, List<String> userGroups, List<String> algorithms)
-
-