57 package com.boschrexroth.mlpi;
67 public static final int MLPI_MAX_USERNAME_LEN = 32;
68 public static final int MLPI_MAX_GROUPNAME_LEN = 32;
69 public static final int MLPI_MAX_INVALIDCHARS_LEN = 32;
70 public static final int MLPI_MAX_USER_DESCRIPTION_LEN = 128;
71 public static final int MLPI_MAX_GROUP_DESCRIPTION_LEN = 128;
72 public static final int MLPI_MAX_PERMISSION_LEN = 128;
87 MLPI_USER_PERSISTENCE_TYPE_TEMPORARY (0),
88 MLPI_USER_PERSISTENCE_TYPE_PERMANENT (1);
91 int getCode() {
return _code; }
95 if (code == value.getCode())
return value;
110 MLPI_ACCESSCONTROL_EXPIRATION_UNIT_MINUTES (0),
111 MLPI_ACCESSCONTROL_EXPIRATION_DAYS (1);
114 int getCode() {
return _code; }
118 if (code == value.getCode())
return value;
142 public String username;
143 public String description;
145 public boolean disabled;
160 public boolean enabled;
161 public long expirationTime;
183 public String username;
184 public String description;
185 public boolean disabled;
186 public boolean userExpirationEnabled;
208 public long minLength;
209 public long maxLength;
210 public long minUpperCase;
211 public long minLowerCase;
212 public long minNumerical;
213 public long minSpecial;
231 public long usernameMinLength;
232 public long usernameMaxLength;
233 public String usernameInvalidChars;
234 public long descriptionMinLength;
235 public long descriptionMaxLength;
253 public String groupName;
254 public String description;
255 public boolean disabled;
272 public long groupNameMinLength;
273 public long groupNameMaxLength;
274 public String groupNameInvalidChars;
275 public long descriptionMinLength;
276 public long descriptionMaxLength;
293 public String groupName;
294 public String description;
295 public boolean disabled;
371 addUser(userDetails, tmpPassword);
413 public native
void deleteUser(String username);
431 public native
void changePassword(String username, String oldPassword, String newPassword);
437 public void ChangePassword(String username, String oldPassword, String newPassword) {
498 public native
void addUserToGroup(String groupName, String username);
532 public native
void setUsersOfGroup(String groupName, String[] usernames);
549 public native
void setGroupsOfUser(String username, String[] groupNames);
582 public native
void resetPassword(String username, String newPassword);
native void setGroup(GroupDetails groupDetails)
Empty class definition which defines global structures/classes.
String[] GetAllUsersOfGroup(String groupName)
native void deleteGroup(String groupName)
void SetGroup(GroupDetails groupDetails)
void AddUser(UserDetails userDetails, String tmpPassword)
native GroupInfo[] getAllGroupInfos()
String[] GetAllGroupsOfUser(String username)
UserInfo[] GetAllUserInfos()
UserPolicies GetUserPolicies()
void ChangePassword(String username, String oldPassword, String newPassword)
native String[] getAllUsersOfGroup(String groupName)
native String[] getAllGroupsOfUser(String username)
void SetGroupsOfUser(String username, String[] groupNames)
void DeleteUser(String username)
This class is used to provide all basic information about a specific group.
native UserDetails getUser(String username)
native String[] getAllAuthorizedGroupsOfPermission(String permission)
Class definition of the AccessControlLib.
native GroupPolicies getGroupPolicies()
String[] GetAllPermissionsOfGroup(String groupName)
native void removePermissionFromGroup(String groupName, String permission)
native void resetPassword(String username, String newPassword)
GroupDetails GetGroup(String groupName)
String[] GetAllAuthorizedGroupsOfPermission(String permission)
native void addGroup(GroupDetails groupDetails)
This class is used to provide all basic information about a specific user.
void AddUserToGroup(String groupName, String username)
GroupInfo[] GetAllGroupInfos()
void SetUsersOfGroup(String groupName, String[] usernames)
This class is used to provide the policies to be applied to all users.
void AddPermissionToGroup(String groupName, String permission)
void SetPermissionsOfGroup(String groupName, String[] permissions)
String[] GetAllPermissions()
void AddGroup(GroupDetails groupDetails)
This enumeration describes the possible units that the expiration time can have (i.e. days or minutes).
native String[] getAllPermissions()
This enumeration describes the possible persistence type of a user.
void RemoveUserFromGroup(String groupName, String username)
void DeleteGroup(String groupName)
native void setUser(UserDetails userDetails)
void SetUser(UserDetails userDetails)
GroupPolicies GetGroupPolicies()
native void setAuthorizedGroupsOfPermission(String permission, String[] groupNames)
native void setUsersOfGroup(String groupName, String[] usernames)
native UserInfo[] getAllUserInfos()
This class defines information about the date and time.
void RemovePermissionFromGroup(String groupName, String permission)
This class is used to provide detailed information about a specific user.
UserDetails GetUser(String username)
native GroupDetails getGroup(String groupName)
This class is used to provide detailed information about the expiration settings applied to sessions ...
native void addUser(UserDetails userDetails, String tmpPassword)
native String[] getAllPermissionsOfGroup(String groupName)
native void setGroupsOfUser(String username, String[] groupNames)
native void addUserToGroup(String groupName, String username)
This class is used to provide the policies to be followed to define the user passwords.
native void setPermissionsOfGroup(String groupName, String[] permissions)
native void deleteUser(String username)
native void removeUserFromGroup(String groupName, String username)
native void addPermissionToGroup(String groupName, String permission)
native void changePassword(String username, String oldPassword, String newPassword)
native PasswordPolicies getPasswordPolicies()
native UserPolicies getUserPolicies()
void ResetPassword(String username, String newPassword)
This class is used to provide detailed information about a specific group.
This class is used to provide the policies to be applied to all groups.
void SetAuthorizedGroupsOfPermission(String permission, String[] groupNames)
PasswordPolicies GetPasswordPolicies()