Package org.netxms.client
Class SSHCredentials
java.lang.Object
org.netxms.client.SSHCredentials
SSH credentials object
-
Constructor Summary
ConstructorDescriptionSSHCredentials
(String login, String password, int keyId) Create new SSH credentials object.SSHCredentials
(NXCPMessage msg, long baseId) Create new SSH credentials object from NXCP message -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg, long baseId) Fill NXCP message with object dataint
getKeyId()
getLogin()
void
setKeyId
(int keyId) void
void
setPassword
(String password) toString()
-
Constructor Details
-
SSHCredentials
Create new SSH credentials object.- Parameters:
login
- login namepassword
- passwordkeyId
- SSH key ID (0 if not assigned)
-
SSHCredentials
Create new SSH credentials object from NXCP message- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
-
Method Details
-
fillMessage
Fill NXCP message with object data- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
getLogin
- Returns:
- the login
-
getPassword
- Returns:
- the password
-
getKeyId
public int getKeyId()- Returns:
- the keyId
-
setLogin
- Parameters:
login
- the login to set
-
setPassword
- Parameters:
password
- the password to set
-
setKeyId
public void setKeyId(int keyId) - Parameters:
keyId
- the keyId to set
-
toString
-