- java.lang.Object
-
- org.snmp4j.security.dh.DHOperations.DHKeyInfo
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- DHOperations
public static class DHOperations.DHKeyInfo extends java.lang.Object implements java.io.Serializable
TheDHSharedKeyInfo
provides DH key exchange information that associates a user name with a key (private or shared) and authentication and privacy protocol OIDs necessary to create anUSM
user during a DH kick-start operation.- Since:
- 3.4.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DHKeyInfo(OctetString userName, byte[] privateKey, OID authProtocol, OID privProtocol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getAuthKey()
OID
getAuthProtocol()
byte[]
getPrivateKey()
byte[]
getPrivKey()
OID
getPrivProtocol()
OctetString
getUserName()
void
setAuthKey(byte[] authKey)
void
setPrivKey(byte[] privKey)
-
-
-
Constructor Detail
-
DHKeyInfo
public DHKeyInfo(OctetString userName, byte[] privateKey, OID authProtocol, OID privProtocol)
-
-
Method Detail
-
getUserName
public OctetString getUserName()
-
getPrivateKey
public byte[] getPrivateKey()
-
getAuthKey
public byte[] getAuthKey()
-
getPrivKey
public byte[] getPrivKey()
-
setAuthKey
public void setAuthKey(byte[] authKey)
-
setPrivKey
public void setPrivKey(byte[] privKey)
-
getAuthProtocol
public OID getAuthProtocol()
-
getPrivProtocol
public OID getPrivProtocol()
-
-