public class SnmpKey extends AbstractKey
description
Modifier | Constructor and Description |
---|---|
|
SnmpKey()
Empty constructor for use with importData
|
protected |
SnmpKey(SnmpKey key) |
Modifier and Type | Method and Description |
---|---|
String |
exportData()
Export the contents of the key into a string form.
|
static SnmpKey |
forSnmpV1(String description,
String readCommunityName,
String writeCommunityName)
Create a v1 SNMP key
|
static SnmpKey |
forSnmpV2(String description,
String readCommunityName,
String writeCommunityName)
Create a v2 SNMP key
|
static SnmpKey |
forSnmpV3(String description,
Usm.AuthorizationType authType,
Usm.PrivacyType privacyType,
String userName,
String authPassword,
String privacyPassword)
Create a v3 SNMP key
|
boolean |
importData(String data)
Imports the contents of the key from an export-encoded string.
|
SnmpTargetArgs |
targetArgs()
Export key data in SNMP Client format.
|
String |
toJson()
To convert an SNMP Key
to a JSON representation.
|
create, decrypt, description, encrypt, equals, getId, hashCode, setDescription, toString, type
protected SnmpKey(SnmpKey key)
public SnmpKey()
public static SnmpKey forSnmpV1(String description, String readCommunityName, String writeCommunityName)
description
- key namereadCommunityName
- communitywriteCommunityName
- communitypublic static SnmpKey forSnmpV2(String description, String readCommunityName, String writeCommunityName)
description
- key namereadCommunityName
- communitywriteCommunityName
- communitypublic static SnmpKey forSnmpV3(String description, Usm.AuthorizationType authType, Usm.PrivacyType privacyType, String userName, String authPassword, String privacyPassword)
description
- key nameauthType
- authentication typeprivacyType
- privacy typeuserName
- user nameauthPassword
- authentication passwordprivacyPassword
- privacy passwordpublic SnmpTargetArgs targetArgs()
public String toJson()
public String exportData()
Key
Copyright © 2016. All Rights Reserved.