|
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
inetsoft.sree.security.FileAuthenticationProvider
public class FileAuthenticationProvider
Authentication module that stores user, password, group and role information on the file system.
| Field Summary |
|---|
| Fields inherited from interface inetsoft.sree.security.AuthenticationProvider |
|---|
INDIVIDUAL |
| Constructor Summary | |
|---|---|
FileAuthenticationProvider()
|
|
| Method Summary | |
|---|---|
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. |
boolean |
authenticate(String user,
Object credential)
Check the authentication of specific entity. |
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. |
Group |
getGroup(String name)
Get a group by name. |
String[] |
getGroups()
Get a list of all groups defined in the system. |
String[] |
getIndividualUsers()
Get a list of all users not in any group except INDIVIDUAL. |
Role |
getRole(String roleid)
Get a role object from the role ID. |
String[] |
getRoles()
Get a list of all roles in the system. |
String[] |
getRoles(String user)
Get a list of all roles bound to specific user. |
User |
getUser(String name)
Get a user by name. |
String[] |
getUsers()
Get a list of all users in the system. |
String[] |
getUsers(String group)
Get a list of all users in a group. |
String[] |
getUsersByRole(String role)
Get a list of all users with assigned role. |
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. |
void |
tearDown()
Tear down the security provider. |
| Methods inherited from class inetsoft.sree.security.AbstractEditableAuthenticationProvider |
|---|
addAuthenticationChangeListener, removeAuthenticationChangeListener |
| Methods inherited from class inetsoft.sree.security.AbstractAuthenticationProvider |
|---|
clearCache, findIdentity, getEmails |
| 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 |
|---|
findIdentity, getEmails |
| Constructor Detail |
|---|
public FileAuthenticationProvider()
| Method Detail |
|---|
public User getUser(String name)
getUser in interface AuthenticationProvidergetUser in class AbstractAuthenticationProvidername - the unique identifier of the user.
public String[] getUsers()
getUsers in interface AuthenticationProvidergetUsers in class AbstractAuthenticationProviderpublic String[] getUsers(String group)
getUsers in interface AuthenticationProvidergetUsers in class AbstractAuthenticationProvidergroup - the name of the group, if the group is null
returns users belongs no group.
public String[] getUsersByRole(String role)
public String[] getIndividualUsers()
getIndividualUsers in interface AuthenticationProvidergetIndividualUsers in class AbstractAuthenticationProviderpublic Group getGroup(String name)
getGroup in interface AuthenticationProvidergetGroup in class AbstractAuthenticationProvidername - the name of the group.
null if no such group exists.public String[] getGroups()
getGroups in interface AuthenticationProvidergetGroups in class AbstractAuthenticationProviderpublic String[] getRoles()
getRoles in interface AuthenticationProvidergetRoles in class AbstractAuthenticationProviderpublic Role getRole(String roleid)
getRole in interface AuthenticationProvidergetRole in class AbstractAuthenticationProviderroleid - the unique identifier of the role.
null if no such role exists.public String[] getRoles(String user)
getRoles in interface AuthenticationProvidergetRoles in class AbstractAuthenticationProvideruser - the unique identifier for the user.
public boolean authenticate(String user,
Object credential)
user - the unique identification of the user.credential - a wrapper for some secure message, such as the user ID
and password.
true if the authentication succeeded.public void tearDown()
public void changePassword(String user,
String password)
throws SRSecurityException
changePassword in interface EditableAuthenticationProviderchangePassword in class AbstractEditableAuthenticationProvideruser - the unique identifier of the user.password - the new password.
SRSecurityException - if the password could not be changed.public void addUser(User user)
addUser in interface EditableAuthenticationProvideraddUser in class AbstractEditableAuthenticationProvideruser - the user to add.
public void setUser(String oname,
User user)
setUser in interface EditableAuthenticationProvidersetUser in class AbstractEditableAuthenticationProvideroname - old user name.user - the new user.public void removeUser(String name)
removeUser in interface EditableAuthenticationProviderremoveUser in class AbstractEditableAuthenticationProvidername - the name of the user to remove.public void addGroup(Group group)
addGroup in interface EditableAuthenticationProvideraddGroup in class AbstractEditableAuthenticationProvidergroup - the group to add.
public void setGroup(String oname,
Group group)
setGroup in interface EditableAuthenticationProvidersetGroup in class AbstractEditableAuthenticationProvideroname - old group name.group - the new group.public void removeGroup(String name)
removeGroup in interface EditableAuthenticationProviderremoveGroup in class AbstractEditableAuthenticationProvidername - the name of the group to remove.public void addRole(Role role)
addRole in interface EditableAuthenticationProvideraddRole in class AbstractEditableAuthenticationProviderrole - the role to add.
public void setRole(String oname,
Role role)
setRole in interface EditableAuthenticationProvidersetRole in class AbstractEditableAuthenticationProvideroname - old role name.role - the new role.public void removeRole(String name)
removeRole in interface EditableAuthenticationProviderremoveRole in class AbstractEditableAuthenticationProvidername - the name of the role to remove.
protected void fireAuthenticationChanged(String oldName,
String newName,
int type,
boolean removed)
fireAuthenticationChanged in class AbstractEditableAuthenticationProvideroldName - 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 | ||||||||