|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AuthenticationProvider
JReport Enterprise Server provides the ability to use customized user authentication scheme.
Interface AuthenticationProvider provides ability to perform authentication
check in customer's external security system. It is core interface in all interfaces
of JReport security API
Since version 7.1, customer can implement the interface
jet.server.api.custom.security.AuthenticationProvider and import the customized class file by
modifying the following JReport Enterprise Server's properties file:
<SERVER PATH>/bin/server.properties or by specifying jvm -D parameter.
When using customized user authentication scheme, user should:
1. Write a class which implements the interface
jet.server.api.custom.AuthenticationProvider.
2. Put the class into CLASSPATH which used by launching JReport Enterprise Server
3. Edit file <SERVER PATH>/bin/server.properties, add a name/value pair, name is
custom.security.AuthenticationProvider, value points to the customized class. or specify
customized class via -D paramter of jvm, name is com.jinfonet.AuthenticationProvider,
value pointes to the customized class.
4. Restart JReport Enterprise Server and the customized user authentication is working.
AuthorizationProvider| Method Summary | |
|---|---|
void |
addSecurityListener(SecurityListener listener)
Adds the specified security listener to receive security info changed event from customer's external security system. |
java.lang.String |
changePassword(java.lang.String realmName,
java.lang.String implUserName,
java.lang.String userName,
java.lang.String oldPwd,
java.lang.String newPwd)
Change user password. |
boolean |
isAdminUser(java.lang.String realmName,
java.lang.String userName)
Check if the user can access the administration tools. |
boolean |
isEnableEdit()
Indicates whether customer's external security system will be modified by invoking some methods in AuthenticationProvider.In common cases, invokeing changePassword() should take effect on
customer's external security system, and cause modification of external security
system, this method should return true in such case. |
boolean |
isValidUser(java.lang.String realmName,
java.lang.String userName,
java.lang.String password)
Check if the user is a valid one. |
| Method Detail |
|---|
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 isAdminUser(java.lang.String realmName,
java.lang.String userName)
realmName - the realm nameuserName - the user name
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 invoke the actionuserName - the user name whose password need to be changedoldPwd - old passwordnewPwd - new password
void addSecurityListener(SecurityListener listener)
listener - the security listener, implemented by JReport Server.SecurityListenerboolean isEnableEdit()
AuthenticationProvider.changePassword() should take effect on
customer's external security system, and cause modification of external security
system, this method should return true in such case. If cusotmer's external
security system will not be affected by invoking changePassword(),
this method should return false. isEditing() with paramter
SecurityWebAdaptor.ACTION_CHANGE_PASSWORD in jet.server.api.SecurityWebAdaptor
is same with this method's return value.
true if external security system will be affected by invoking
changePassword(), otherwise return false.SecurityWebAdaptor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||