|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UserAuthenticator
JReport Enterprise Server provides the ability to use customized user authentication scheme.
A customized user authentication scheme must implement the interface
jet.server.UserAuthenticator, and import the customized class file by
modifying the following JReport Enterprise Server's properties file:
<SERVER PATH>/bin/classes.properties
When using customized user authentication scheme, user should:
1. Write a class which implements the interface
jet.server.UserAuthenticator.
2. Put the class into CLASSPATH which used by launching JReport Enterprise Server
3. Edit file <SERVER PATH>/bin/classes.properties, let name
UserAuthenticator point to the customized class
4. Restart JReport Enterprise Server and the customized user authentication is working.
| Field Summary | |
|---|---|
static int |
ACCESS
|
static int |
MANAGE
|
| Method Summary | |
|---|---|
java.lang.String |
changePassword(java.lang.String realmName,
java.lang.String implUserName,
java.lang.String userName,
java.lang.String oldPwd,
java.lang.String newPwd)
Changes user password. |
java.lang.String |
changePasswordEx(java.lang.String realmName,
java.lang.String implUserName,
java.lang.String userName,
java.lang.String oldPwd,
java.lang.String newPwd)
Changes user password. |
boolean |
getAuditState(java.lang.String realmName,
java.lang.String userName,
int type,
boolean success)
Gets the audit state setting. |
UserMailList |
getMailList()
Gets the user mail list. |
java.lang.String |
getPassword(java.lang.String realmName,
java.lang.String userName)
Gets the user password |
java.util.Enumeration |
getRealmNames()
Gets the realm list. |
java.util.Enumeration |
getUserNames(java.lang.String realmName)
Gets the user names in the realm. |
boolean |
isPermissionOk(java.lang.String realmName,
java.lang.String userName,
java.lang.String uri,
int versionNumber,
java.lang.String cmd)
Checks if the user has the permission to do the action on a specific version of resource |
boolean |
isPermissionOk(java.lang.String realmName,
java.lang.String userName,
java.lang.String uri,
java.lang.String cmd)
Checks if the user has the permission to do the action |
boolean |
isValidAdminUser(java.lang.String realmName,
java.lang.String userName,
java.lang.String password)
Checks if the user can access the administration tools. |
boolean |
isValidUser(java.lang.String realmName,
java.lang.String userName,
java.lang.String password)
Checks if the user is a valid one. |
| Field Detail |
|---|
static final int ACCESS
static final int MANAGE
| Method Detail |
|---|
java.lang.String changePassword(java.lang.String realmName,
java.lang.String implUserName,
java.lang.String userName,
java.lang.String oldPwd,
java.lang.String newPwd)
realmName - the realm nameimplUserName - the user name who invoked the actionuserName - the user name whose password needs to be changedoldPwd - the old passwordnewPwd - the new password
java.lang.String changePasswordEx(java.lang.String realmName,
java.lang.String implUserName,
java.lang.String userName,
java.lang.String oldPwd,
java.lang.String newPwd)
throws InvalidPasswordException
realmName - the realm nameimplUserName - the user name who invoked the actionuserName - the user name whose password needs to be changedoldPwd - the old passwordnewPwd - the new password
InvalidPasswordException - if password not match advanced password rule
boolean isPermissionOk(java.lang.String realmName,
java.lang.String userName,
java.lang.String uri,
java.lang.String cmd)
realmName - the realm nameuserName - the user nameuri - the request URI
the uri equals a special string APIConst.PRIVILEGE_URI which means this method is used to
check privileges.
For example, if this method is used to check privileges, it will be invoked as:
isPermissionOk(realmName, userName, APIConst.PRIVILEGE_URI, cmd);cmd - the action needed to be invoked. see brsow2cmd.htm
for detailed information
boolean isPermissionOk(java.lang.String realmName,
java.lang.String userName,
java.lang.String uri,
int versionNumber,
java.lang.String cmd)
realmName - the realm nameuserName - the user nameuri - the request URIversionNumber - version number of the resource specified by URIcmd - the action needed to be invoked. see brsow2cmd.htm
for detailed information
boolean isValidUser(java.lang.String realmName,
java.lang.String userName,
java.lang.String password)
realmName - the realm nameuserName - the user namepassword - the user password
boolean isValidAdminUser(java.lang.String realmName,
java.lang.String userName,
java.lang.String password)
realmName - the realm nameuserName - the user namepassword - the user password
java.lang.String getPassword(java.lang.String realmName,
java.lang.String userName)
realmName - the realm nameuserName - the user name
java.util.Enumeration getRealmNames()
String.java.util.Enumeration getUserNames(java.lang.String realmName)
realmName - the realm name
String.
boolean getAuditState(java.lang.String realmName,
java.lang.String userName,
int type,
boolean success)
realmName - the realm nameuserName - the user nametype - the target type, which must be one of the constants defined abovesuccess - denotes whether audit succeeded or failed
UserMailList getMailList()
UserMailList
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||