public interface Authenticator
| Modifier and Type | Method and Description |
|---|---|
String |
changePassword(String realm,
String byUserID,
String userID,
String password,
String newPassword)
Changes the password of a user.
|
String |
changePasswordEx(String realm,
String byUserID,
String userID,
String password,
String newPassword)
Changes the password of a user.
|
boolean |
checkPrivilege(String realm,
String userID,
String privilege)
Checks if the user has the privilege.
|
boolean |
isAdminUser(String realm,
String userID) |
boolean |
isOrganizationAdminUser(String realm,
String userID) |
boolean |
isPermissionOk(String realm,
String userID,
String resource,
int versionNumber,
String action)
Checks if the user has the permission of the action on the resource in the server.
|
boolean |
isPermissionOk(String realm,
String userID,
String resource,
String action)
Checks if the user has the permission of the action on the resource in the server.
|
boolean |
isValidAdminUser(String realm,
String userID,
String password)
Checks if the user is valid admin user.
|
boolean |
isValidAdminUserEx(String realm,
String userID,
String password)
Checks if the user is valid admin user.
|
boolean |
isValidOrganizationAdminUser(String realm,
String userID,
String password)
Checks if the user is valid admin user of an organization.
|
boolean |
isValidUser(String realm,
String userID,
String password)
Checks if the user is valid.
|
boolean |
isValidUserEx(String realm,
String userID,
String password)
Checks if the user is valid.
|
boolean isValidUser(String realm, String userID, String password)
realm - the realm.userID - the user ID.password - the password.boolean isValidUserEx(String realm, String userID, String password) throws InvalidUserException
realm - the realm.userID - the user ID.password - the password.InvalidUserException - if the user is not valid.boolean isValidAdminUser(String realm, String userID, String password)
realm - the realm.userID - the user ID.password - the password.boolean isValidAdminUserEx(String realm, String userID, String password) throws InvalidUserException
realm - the realm.userID - the user ID.password - the password.InvalidUserException - if the user is not valid.boolean isValidOrganizationAdminUser(String realm, String userID, String password)
realm - the realm.userID - the user ID, organization name and user name is separated by "\".password - the password.boolean isPermissionOk(String realm, String userID, String resource, String action)
realm - the realm.userID - the user ID.resource - the resource in the server, for example, /SunVMDemo/SunVMDemo.cataction - the action for the resource in the server, for example, APIConst.CMD_WEB_VIEW.boolean isPermissionOk(String realm, String userID, String resource, int versionNumber, String action)
realm - the realm.userID - the user ID.resource - the resource in the server, for example, /SunVMDemo/SunVMDemo.cat.versionNumber - the version number of resource which will be checked.action - the action o the resource in the server, for example: APIConst.CMD_WEB_VIEW.boolean checkPrivilege(String realm, String userID, String privilege)
realm - the realm.userID - the user ID.privilege - the privilege string. The available privileges are:
APIConst.PRIVILEGE_CREATE_ANALYSIS_REPORT, APIConst.PRIVILEGE_PUBLISH_REPORT, APIConst.PRIVILEGE_ACCESS_ADVANCED_PROPERTIES.String changePassword(String realm, String byUserID, String userID, String password, String newPassword)
realm - the realm.byUserID - changes by the user ID.userID - the user ID whose password will be changed.password - the password byUserID.newPassword - the new password.String changePasswordEx(String realm, String byUserID, String userID, String password, String newPassword) throws InvalidPasswordException
realm - the realm.byUserID - changes by the user ID.userID - the user ID whose password will be changed.password - the password byUserID.newPassword - the new password.InvalidPasswordException - if password not match advanced password rule© insightsoftware. All rights reserved.