|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmapps.modules.cloudprovider.impl.DefaultCloudProvider
net.sf.mmapps.modules.cloudprovider.impl.ConfiguredUsernameAndPasswordCloudProvider
public class ConfiguredUsernameAndPasswordCloudProvider
This CloudProvider logs in to mmbase using a username / password combination.
Most MMBase security implementation provide a possibility to login to MMBase using a username and password
This provider implementation will login into MMBase using the name/password method. If no configuration is provided
The default admin/admin2k combination of username and password will be used. To override the user name and password
you must define the username and password in the configuration file using the "username" and "password" property
| Field Summary | |
|---|---|
static java.lang.String |
AUTHENTICATION_METHOD_NAME
The MMBase authentication method used |
static java.lang.String |
PASSWORD_PROPERTY_NAME
The name of the property used to determine the password. |
static java.lang.String |
USERNAME_PROPERTY_NAME
The name of the property used to determine the user name. |
| Fields inherited from class net.sf.mmapps.modules.cloudprovider.impl.DefaultCloudProvider |
|---|
cloudcontextname, CLOUDCONTEXTNAME_PROPERTY_NAME, cloudname, CLOUDNAME_PROPERTY_NAME, DEFAULT_CLOUD_NAME |
| Constructor Summary | |
|---|---|
ConfiguredUsernameAndPasswordCloudProvider()
|
|
| Method Summary | |
|---|---|
org.mmbase.bridge.Cloud |
getAdminCloud()
This method should return a cloud that can be used for administration purposes. |
org.mmbase.bridge.Cloud |
getCloud()
This is the default method to get an MMBase cloud instance. |
protected void |
setPassword(java.lang.String password)
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Allows the user name and password property to be set |
protected void |
setUsername(java.lang.String userName)
|
| Methods inherited from class net.sf.mmapps.modules.cloudprovider.impl.DefaultCloudProvider |
|---|
getAnonymousCloud |
| 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_NAME
public static final java.lang.String PASSWORD_PROPERTY_NAME
public static final java.lang.String AUTHENTICATION_METHOD_NAME
| Constructor Detail |
|---|
public ConfiguredUsernameAndPasswordCloudProvider()
| Method Detail |
|---|
public org.mmbase.bridge.Cloud getAdminCloud()
CloudProvider
getAdminCloud in interface CloudProvidergetAdminCloud in class DefaultCloudProviderCloudProvider.getAdminCloud()public org.mmbase.bridge.Cloud getCloud()
CloudProvider
getCloud in interface CloudProvidergetCloud in class DefaultCloudProviderCloudProvider.getCloud()
public void setProperty(java.lang.String name,
java.lang.String value)
setProperty in interface ConfigurablesetProperty in class DefaultCloudProvidername - name of propertyvalue - value of propertyDefaultCloudProvider.setProperty(String, String)protected void setUsername(java.lang.String userName)
protected void setPassword(java.lang.String password)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||