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.
| Methods inherited from interface inetsoft.sree.security.AuthenticationProvider |
authenticate, findIdentity, getEmails, getGroup, getGroups, getIndividualUsers, getRole, getRoles, getRoles, getUser, getUsers, getUsers, tearDown |
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