|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.sree.security.AbstractAuthenticationProvider
inetsoft.sree.security.AbstractEditableAuthenticationProvider
public abstract class AbstractEditableAuthenticationProvider
Skeleton implementation of an editable authentication module.
| Field Summary |
|---|
| Fields inherited from interface inetsoft.sree.security.AuthenticationProvider |
|---|
INDIVIDUAL |
| Constructor Summary | |
|---|---|
AbstractEditableAuthenticationProvider()
|
|
| Method Summary | |
|---|---|
void |
addAuthenticationChangeListener(AuthenticationChangeListener l)
Adds a listener that is notified when a security object is removed or renamed. |
void |
addGroup(Group group)
Add a group to the system. |
void |
addRole(Role role)
Add a role to the system. |
void |
addUser(User user)
Add a user to the system. |
void |
changePassword(String user,
String password)
Change the password for an entity. |
protected void |
fireAuthenticationChanged(String oldName,
String newName,
int type,
boolean removed)
Notifies all registered listeners that a security object has been removed or renamed. |
void |
removeAuthenticationChangeListener(AuthenticationChangeListener l)
Removes a change listener from the notification list. |
void |
removeGroup(String name)
Remove a group from the system. |
void |
removeRole(String name)
Remove a role from the system. |
void |
removeUser(String name)
Remove a user from the system. |
void |
setGroup(String oname,
Group group)
Set group. |
void |
setRole(String oname,
Role role)
Set role. |
void |
setUser(String oname,
User user)
Set user. |
| Methods inherited from class inetsoft.sree.security.AbstractAuthenticationProvider |
|---|
clearCache, findIdentity, getEmails, getGroup, getGroups, getIndividualUsers, getRole, getRoles, getRoles, getUser, getUsers, getUsers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface inetsoft.sree.security.AuthenticationProvider |
|---|
authenticate, findIdentity, getEmails, getGroup, getGroups, getIndividualUsers, getRole, getRoles, getRoles, getUser, getUsers, getUsers, tearDown |
| Constructor Detail |
|---|
public AbstractEditableAuthenticationProvider()
| Method Detail |
|---|
public void addUser(User user)
addUser in interface EditableAuthenticationProvideruser - the user to add.public void addGroup(Group group)
addGroup in interface EditableAuthenticationProvidergroup - the group to add.public void addRole(Role role)
addRole in interface EditableAuthenticationProviderrole - the role to add.
public void setUser(String oname,
User user)
setUser in interface EditableAuthenticationProvideroname - old user name.user - the new user.
public void setGroup(String oname,
Group group)
setGroup in interface EditableAuthenticationProvideroname - old group name.group - the new group.
public void setRole(String oname,
Role role)
setRole in interface EditableAuthenticationProvideroname - old role name.role - the new role.public void removeUser(String name)
removeUser in interface EditableAuthenticationProvidername - the name of the user to remove.public void removeGroup(String name)
removeGroup in interface EditableAuthenticationProvidername - the name of the group to remove.public void removeRole(String name)
removeRole in interface EditableAuthenticationProvidername - the name of the role to remove.
public void changePassword(String user,
String password)
throws SRSecurityException
changePassword in interface EditableAuthenticationProvideruser - the unique identifier of the user.password - the new password.
SRSecurityException - if the password could not be changed.public void addAuthenticationChangeListener(AuthenticationChangeListener l)
addAuthenticationChangeListener in interface EditableAuthenticationProviderl - the listener to add.public void removeAuthenticationChangeListener(AuthenticationChangeListener l)
removeAuthenticationChangeListener in interface EditableAuthenticationProviderl - the listener to remove.
protected void fireAuthenticationChanged(String oldName,
String newName,
int type,
boolean removed)
oldName - the old name of the security object.newName - the new name of the security object.type - the type of the security object. The value of this parameter
must be one of the type constants defined in
Identity.removed - true if the security object has been removed;
false otherwise.
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||