Style Intelligence v12.0

inetsoft.sree.security
Interface SecurityProvider

All Superinterfaces:
AuthenticationChangeListener, AuthenticationProvider, AuthorizationProvider, EventListener
All Known Implementing Classes:
AbstractSecurityProvider, CompositeSecurityProvider, FileSecurityProvider, VirtualSecurityProvider

public interface SecurityProvider
extends AuthenticationProvider, AuthorizationProvider

This interface defines the API for security provider. A security provider provides information on users, manages resource permission settings, and check permissions.


Field Summary
 
Fields inherited from interface inetsoft.sree.security.AuthenticationProvider
INDIVIDUAL
 
Method Summary
 boolean checkPermission(Principal user, String resource, char acc)
          Check the permission to access a resource.
 
Methods inherited from interface inetsoft.sree.security.AuthenticationProvider
authenticate, findIdentity, getEmails, getGroup, getGroups, getIndividualUsers, getRole, getRoles, getRoles, getUser, getUsers, getUsers, tearDown
 
Methods inherited from interface inetsoft.sree.security.AuthorizationProvider
getPermission, removePermission, setPermission, supportGroupPermission, tearDown
 
Methods inherited from interface inetsoft.sree.security.AuthenticationChangeListener
authenticationChanged
 

Method Detail

checkPermission

boolean checkPermission(Principal user,
                        String resource,
                        char acc)
Check the permission to access a resource.

Parameters:
user - a Principal object that identifies the user. This will typically be an instance of SRPrincipal.
resource - resource name.
acc - permission. 'r' for read, 'w' for write, and 'd' for delete.
Returns:
true if the permission is granted to this principal

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