com.adventnet.cli.config
Interface LoginInterface
- public interface LoginInterface
This interface can be implemented by the user when the user wants to get
the login name and password for a login level or mode. In case the user
doesn't want to expose the login name and password in the xml file, these
details can be returned from the implementation of this interface. The user
can possibly define one implementation for a device type.
- Since:
- CLI2.0
|
Method Summary |
java.lang.String |
getLoginName(java.lang.String levelName)
Returns the login name for the level given. |
java.lang.String |
getLoginPassword(java.lang.String levelName)
Returns the password for the login level. |
getLoginName
public java.lang.String getLoginName(java.lang.String levelName)
- Returns the login name for the level given. This method will be
invoked when login name is required by the level and no login name
is given.
- Parameters:
levelName - the name of the level for which login name is required.- Returns:
- the login name for the level.
getLoginPassword
public java.lang.String getLoginPassword(java.lang.String levelName)
- Returns the password for the login level. This method will be invoked
if password is required for the login level and no password is given.
- Parameters:
levelName - the name of level for which password is required.- Returns:
- the password for the level.