com.infodesire.infobit.security
Interface SecurityProvider

All Known Implementing Classes:
DefaultSecurityProvider

public interface SecurityProvider

security providers for infobit pools shall implement this

Version:
$Revision: 1.3 $
Author:
konstantin

Method Summary
 java.lang.String getName()
          provide name of user or null if none
 boolean hasRole(java.util.Collection roles)
          whether user has one of given roles
 boolean hasRole(java.lang.String role)
          whether user has given role
 void init(java.util.Properties properties)
          initialize factory with properties.
 boolean isSuperuser()
          whether current user is allowed to modify ACL
 

Method Detail

getName

public java.lang.String getName()
provide name of user or null if none

Returns:
The Name value

hasRole

public boolean hasRole(java.lang.String role)
whether user has given role

Parameters:
role - Description of Parameter
Returns:
Description of the Returned Value

hasRole

public boolean hasRole(java.util.Collection roles)
whether user has one of given roles

Parameters:
roles - Description of Parameter
Returns:
Description of the Returned Value

init

public void init(java.util.Properties properties)
initialize factory with properties.

Parameters:
properties - Description of Parameter

isSuperuser

public boolean isSuperuser()
whether current user is allowed to modify ACL

Returns:
The Superuser value


Copyright © 2003 Information Desire GmbH. All Rights Reserved.