|
AdventNet WiFi Mediation API, v1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.adventnet.wifi.mediation.CLICredentials
Class that contains the CLI related properties such as
1. Login Prompt
2. Login Name
3. Password Prompt
4. Password
5. Time out
These properties will be used to log into the the device to retrieve
or configure the device using CLI.
Device.setCLICredentials(CLICredentials)| Field Summary | |
static int |
CLI_LOGIN_TIMEOUT
Constant to represent the CLI login timeout value. |
static int |
CLI_PORT
Constant that represents the CLI PORT value. |
static int |
CLI_REQUEST_TIMEOUT
Constant to represent the CLI request timeout value. |
| Constructor Summary | |
CLICredentials(int port,
java.lang.String loginName,
java.lang.String password)
Constructs a CLICredential Obj with the given port,login name and password. |
|
CLICredentials(int port,
java.lang.String loginName,
java.lang.String password,
boolean useSSH)
Constructs a CLICredential with the given port, login name, password and a boolean indicating if SSH is to be used for communicating with the device. |
|
| Method Summary | |
java.lang.String |
getEnablePassword()
Fetches the enable password for the device. |
java.lang.String |
getEnablePrompt()
Fetches the enable prompt. |
java.lang.String |
getLoginName()
Returns the login id to log on to the device |
java.lang.String |
getLoginPrompt()
Returns the login Prompt of the service. |
int |
getLoginTimeout()
Fetches the login request's timeout in millisecond. |
java.lang.String |
getPassword()
Returns the Password to log on to the device |
java.lang.String |
getPasswordPrompt()
Returns the password prompt of the service. |
int |
getPort()
Returns the port in which the CLI service is enabled. |
int |
getRequestTimeout()
Fetches the Request timeout in millisecond. |
java.lang.String |
getShellPrompt()
Returns the ShellPrompt of the service. |
boolean |
isSecureShellEnabled()
A method to indicate if the CLI commands are to be sent over SSH |
void |
setEnablePassword(java.lang.String passwd)
Sets the enable password. |
void |
setEnablePrompt(java.lang.String prompt)
Sets the enable prompt. |
void |
setLoginName(java.lang.String loginName)
A method to set the loginName that is to log on to the device |
void |
setLoginPrompt(java.lang.String loginPrompt)
Sets the login prompt for the service. |
void |
setLoginTimeout(int timeout)
Sets the login request's timeout in millisecond. |
void |
setPassword(java.lang.String password)
Sets the password to login to the device |
void |
setPasswordPrompt(java.lang.String passwordPrompt)
Sets the passwordPrompt for the service. |
void |
setPort(int port)
A method to set the port number on which the CLI service in the device is enabled. |
void |
setRequestTimeout(int timeout)
Sets the request timeout in millisecond. |
void |
setShellPrompt(java.lang.String shellPrompt)
Sets the Shell Prompt for the service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int CLI_PORT
public static int CLI_LOGIN_TIMEOUT
public static int CLI_REQUEST_TIMEOUT
| Constructor Detail |
public CLICredentials(int port,
java.lang.String loginName,
java.lang.String password)
port - The port number on which the CLI service in the device is enabled.loginName - The login id to log on to the devicepassword - the password to login to the device.
public CLICredentials(int port,
java.lang.String loginName,
java.lang.String password,
boolean useSSH)
port - The port number on which the CLI service in the device
is enabled.loginName - The login id to connect to the devicepassword - the password to login to the device.useSSH - A boolean that indicates if the CLI commands are to be
sent over a SSH connection| Method Detail |
public boolean isSecureShellEnabled()
public int getPort()
public void setPort(int port)
port - the port in which the CLI service is running.public java.lang.String getLoginName()
public void setLoginName(java.lang.String loginName)
loginName - The login id to log on to the devicepublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - the password.public java.lang.String getLoginPrompt()
public void setLoginPrompt(java.lang.String loginPrompt)
loginPrompt - the login prompt of the service.public java.lang.String getPasswordPrompt()
public void setPasswordPrompt(java.lang.String passwordPrompt)
passwordPrompt - the password prompt of the service.public java.lang.String getShellPrompt()
public void setShellPrompt(java.lang.String shellPrompt)
shellPrompt - the shell promptpublic void setEnablePassword(java.lang.String passwd)
passwd - the enable password of the device.public java.lang.String getEnablePassword()
public void setEnablePrompt(java.lang.String prompt)
prompt - the enable prompt of the device.public java.lang.String getEnablePrompt()
public void setLoginTimeout(int timeout)
timeout - login timeout value in millisecond.public int getLoginTimeout()
public void setRequestTimeout(int timeout)
timeout - the request timeout value in millisecond.public int getRequestTimeout()
|
AdventNet WiFi Mediation API, v1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||