|
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.AbstractSecurityProvider
public abstract class AbstractSecurityProvider
A skeletal implementation of a security provider.
| Field Summary |
|---|
| Fields inherited from interface inetsoft.sree.security.AuthenticationProvider |
|---|
INDIVIDUAL |
| Constructor Summary | |
|---|---|
AbstractSecurityProvider(AuthenticationProvider authentication,
AuthorizationProvider authorization)
Creates a new instance of AbstractSecurityProvider. |
|
| Method Summary | |
|---|---|
boolean |
authenticate(String user,
Object credential)
Check the authentication of specific entity. |
boolean |
authenticateFallbackAdmin(String user,
Object credential)
Authenticates an administrative user using an alternative mechanism. |
void |
authenticationChanged(AuthenticationChangeEvent event)
Signals that a security object has been removed or renamed. |
boolean |
checkPermission(Principal principal,
String resource,
char access)
Check the permission to access a resource. |
void |
clearCache()
Clear the cached data. |
inetsoft.uql.util.Identity |
findIdentity(inetsoft.uql.util.Identity identity)
Find the concrete identity in this security provider. |
AuthenticationProvider |
getAuthenticationProvider()
Gets the module that provides authentication support to this security provider. |
AuthorizationProvider |
getAuthorizationProvider()
Gets the module that provides authorization support to this security provider. |
String[] |
getEmails(String user)
Deprecated. use User.getEmails() instead. |
Group |
getGroup(String name)
Get a group by name. |
inetsoft.uql.util.Identity[] |
getGroupMembers(String groupName)
Gets all members of a group. |
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. |
Permission |
getPermission(String resource)
Get the permission of the specified type. |
Role |
getRole(String name)
Get a role object from the role ID. |
inetsoft.uql.util.Identity[] |
getRoleMembers(String roleName)
Gets the groups and users that have been assigned the specified role. |
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, include the 'Everyone' role. |
User |
getUser(String name)
Get a user by name. |
String[] |
getUsers()
Gets a list of all users in the system. |
String[] |
getUsers(String group)
Get a list of all users in a group. |
void |
removePermission(String resource)
Remove the user permission. |
void |
setPermission(String resource,
Permission perm)
Set the permission for specific resource. |
boolean |
supportGroupPermission()
Check if provider support to allocate permission to group or not. |
void |
tearDown()
Tear down the security provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSecurityProvider(AuthenticationProvider authentication,
AuthorizationProvider authorization)
authentication - the authentication provider.authorization - the authorization provider.| Method Detail |
|---|
public AuthenticationProvider getAuthenticationProvider()
public AuthorizationProvider getAuthorizationProvider()
public String[] getUsers()
getUsers in interface AuthenticationProviderpublic User getUser(String name)
getUser in interface AuthenticationProvidername - the unique identifier of the user.
@Deprecated public String[] getEmails(String user)
User.getEmails() instead.
getEmails in interface AuthenticationProvideruser - the unique identifier for the user.
public Group getGroup(String name)
getGroup in interface AuthenticationProvidername - the name of the group.
null if no such group exists.public String[] getUsers(String group)
getUsers in interface AuthenticationProvidergroup - the name of the group.
public String[] getIndividualUsers()
getIndividualUsers in interface AuthenticationProviderpublic String[] getRoles()
getRoles in interface AuthenticationProviderpublic String[] getRoles(String user)
getRoles in interface AuthenticationProvideruser - the unique identifier for the user.
public Role getRole(String name)
getRole in interface AuthenticationProvidername - the name of the role.
null if no such role exists.public String[] getGroups()
getGroups in interface AuthenticationProvider
public boolean authenticate(String user,
Object credential)
authenticate in interface AuthenticationProvideruser - 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 boolean authenticateFallbackAdmin(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. credential should be of the type
String or DefaultTicket.
public inetsoft.uql.util.Identity[] getGroupMembers(String groupName)
groupName - the name of the group.
public inetsoft.uql.util.Identity[] getRoleMembers(String roleName)
roleName - the name of the role.
public void setPermission(String resource,
Permission perm)
setPermission in interface AuthorizationProviderresource - resource name, such as a replet register name or a saved
report path.perm - permission setting.public void removePermission(String resource)
removePermission in interface AuthorizationProviderresource - resource name, such as a replet path or a saved
report path.public Permission getPermission(String resource)
getPermission in interface AuthorizationProviderresource - resource name.
null if no permission is set
for this resourece.public void tearDown()
tearDown in interface AuthenticationProvidertearDown in interface AuthorizationProvider
public boolean checkPermission(Principal principal,
String resource,
char access)
checkPermission in interface SecurityProviderprincipal - a Principal object that identifies the user. This will
typically be an instance of
SRPrincipal.resource - resource name.access - permission. 'r' for read, 'w' for write, and 'd' for
delete.
public void authenticationChanged(AuthenticationChangeEvent event)
authenticationChanged in interface AuthenticationChangeListenerevent - the object that describes the change event.public final inetsoft.uql.util.Identity findIdentity(inetsoft.uql.util.Identity identity)
findIdentity in interface AuthenticationProviderpublic boolean supportGroupPermission()
supportGroupPermission in interface AuthorizationProviderpublic void clearCache()
|
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 | ||||||||