|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.infodesire.infobit.security.DefaultSecurityProvider
default security provider. hardwired user configuration off properties
| Field Summary | |
static java.lang.String |
ROLE_PROPERTY_PREFIX
property name prefix specifying user role ( can be used more than once ) good choice would be adding sequencial number |
static java.lang.String |
USERNAME_PROPERTY
property configuring username of this provider |
| Constructor Summary | |
DefaultSecurityProvider()
|
|
| Method Summary | |
java.lang.String |
getName()
configured user name |
boolean |
hasRole(java.util.Collection roles)
whether provider configured to at least one of given roles |
boolean |
hasRole(java.lang.String role)
whether provider configured to accept this role |
void |
init(java.util.Properties properties)
initialize security provider ( user & role set ) via properties. |
boolean |
isSuperuser()
Gets the Superuser attribute of the DefaultSecurityProvider object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String USERNAME_PROPERTY
public static final java.lang.String ROLE_PROPERTY_PREFIX
| Constructor Detail |
public DefaultSecurityProvider()
| Method Detail |
public java.lang.String getName()
getName in interface SecurityProviderpublic boolean isSuperuser()
isSuperuser in interface SecurityProviderpublic boolean hasRole(java.lang.String role)
hasRole in interface SecurityProviderrole - role name of interest
public boolean hasRole(java.util.Collection roles)
hasRole in interface SecurityProviderroles - Description of Parameter
public void init(java.util.Properties properties)
init in interface SecurityProviderproperties - Description of Parameter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||