Style Intelligence v12.0

inetsoft.sree.security
Class VirtualAuthenticationProvider

java.lang.Object
  extended by inetsoft.sree.security.AbstractAuthenticationProvider
      extended by inetsoft.sree.security.AbstractEditableAuthenticationProvider
          extended by inetsoft.sree.security.VirtualAuthenticationProvider
All Implemented Interfaces:
AuthenticationProvider, EditableAuthenticationProvider

public class VirtualAuthenticationProvider
extends AbstractEditableAuthenticationProvider

Virtual authentication module.

Since:
8.5

Field Summary
 
Fields inherited from interface inetsoft.sree.security.AuthenticationProvider
INDIVIDUAL
 
Constructor Summary
VirtualAuthenticationProvider()
          Creates a new instance of VirtualAuthenticationProvider.
 
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 ticket)
          Check the authentication of specific entity.
 String[] getRoles()
          Get a list of all roles in the system.
 User getUser(String name)
          Get a user by name.
 String[] getUsers()
          Get a list of all users in the system.
 void removeGroup(String name)
          Remove a group 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, addGroup, changePassword, fireAuthenticationChanged, removeAuthenticationChangeListener, removeRole, setGroup
 
Methods inherited from class inetsoft.sree.security.AbstractAuthenticationProvider
clearCache, findIdentity, getEmails, getGroup, getGroups, getIndividualUsers, getRole, getRoles, 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
findIdentity, getEmails, getGroup, getGroups, getIndividualUsers, getRole, getRoles, getUsers
 

Constructor Detail

VirtualAuthenticationProvider

public VirtualAuthenticationProvider()
Creates a new instance of VirtualAuthenticationProvider.

Method Detail

getRoles

public String[] getRoles()
Get a list of all roles in the system.

Specified by:
getRoles in interface AuthenticationProvider
Overrides:
getRoles in class AbstractAuthenticationProvider
Returns:
list of roles.

authenticate

public boolean authenticate(String user,
                            Object ticket)
Check the authentication of specific entity.

Parameters:
user - the unique identification of the user.
ticket - a wrapper for some secure message, such as the user ID and password.
Returns:
true if the authentication succeeded.

getUsers

public String[] getUsers()
Get a list of all users in the system.

Specified by:
getUsers in interface AuthenticationProvider
Overrides:
getUsers in class AbstractAuthenticationProvider
Returns:
list of users.

getUser

public User getUser(String name)
Get a user by name.

Specified by:
getUser in interface AuthenticationProvider
Overrides:
getUser in class AbstractAuthenticationProvider
Parameters:
name - the unique identifier of the user.
Returns:
the User object that encapsulates the properties of the user.

tearDown

public void tearDown()
Tear down the security provider.


addGroup

public void addGroup(Group group)
Add a group to the system.

Parameters:
group - the group to add.

addRole

public void addRole(Role role)
Add a role to the system.

Specified by:
addRole in interface EditableAuthenticationProvider
Overrides:
addRole in class AbstractEditableAuthenticationProvider
Parameters:
role - the role to add.

addUser

public void addUser(User user)
Add a user to the system.

Specified by:
addUser in interface EditableAuthenticationProvider
Overrides:
addUser in class AbstractEditableAuthenticationProvider
Parameters:
user - the user to add.

removeGroup

public void removeGroup(String name)
Remove a group from the system.

Specified by:
removeGroup in interface EditableAuthenticationProvider
Overrides:
removeGroup in class AbstractEditableAuthenticationProvider
Parameters:
name - the name of the group to remove.

removeUser

public void removeUser(String name)
Remove a user from the system.

Specified by:
removeUser in interface EditableAuthenticationProvider
Overrides:
removeUser in class AbstractEditableAuthenticationProvider
Parameters:
name - the name of the user to remove.

setGroup

public void setGroup(String oname,
                     Group group)
Set group.

Parameters:
oname - old group name.
group - the new group.

setRole

public void setRole(String oname,
                    Role role)
Set role.

Specified by:
setRole in interface EditableAuthenticationProvider
Overrides:
setRole in class AbstractEditableAuthenticationProvider
Parameters:
oname - old role name.
role - the new role.

setUser

public void setUser(String oname,
                    User user)
Set user.

Specified by:
setUser in interface EditableAuthenticationProvider
Overrides:
setUser in class AbstractEditableAuthenticationProvider
Parameters:
oname - old user name.
user - the new user.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.