Module org.snmp4j.agent
Package org.snmp4j.agent.mo.snmp.dh
Class SnmpUsmDhObjectsMib.UsmDHUserKeyEntryRow
- java.lang.Object
-
- org.snmp4j.agent.mo.DefaultMOTableRow
-
- org.snmp4j.agent.mo.DefaultMOMutableRow2PC
-
- org.snmp4j.agent.mo.snmp.dh.SnmpUsmDhObjectsMib.UsmDHUserKeyEntryRow
-
- All Implemented Interfaces:
Comparable<MOTableRow>
,MOMutableRow2PC<SubRequest<?>>
,MOMutableTableRow
,MOTableRow
- Enclosing class:
- SnmpUsmDhObjectsMib
public class SnmpUsmDhObjectsMib.UsmDHUserKeyEntryRow extends DefaultMOMutableRow2PC
-
-
Field Summary
-
Fields inherited from class org.snmp4j.agent.mo.DefaultMOTableRow
index, values
-
-
Constructor Summary
Constructors Constructor Description UsmDHUserKeyEntryRow(org.snmp4j.smi.OID index, org.snmp4j.smi.Variable[] values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearDHKeyChange()
void
commitRow(SubRequest<?> subRequest, MOTableRow changeSet)
Commits a row as described by the supplied change set.DHKeyInfo
getAuthKeyChange()
org.snmp4j.security.AuthenticationProtocol
getAuthProtocol(MOTableRow changeSet)
MOTableIndex
getIndexDef()
byte[]
getNewAuthKey()
byte[]
getNewPrivKey()
DHKeyInfo
getOwnAuthKeyChange()
DHKeyInfo
getOwnPrivKeyChange()
DHKeyInfo
getPrivKeyChange()
org.snmp4j.security.PrivacyProtocol
getPrivProtocol(MOTableRow changeSet)
org.snmp4j.smi.OctetString
getUsmDHUserAuthKeyChange()
org.snmp4j.smi.OctetString
getUsmDHUserOwnAuthKeyChange()
org.snmp4j.smi.OctetString
getUsmDHUserOwnPrivKeyChange()
org.snmp4j.smi.OctetString
getUsmDHUserPrivKeyChange()
org.snmp4j.smi.Variable
getValue(int column)
Gets the value at the specified column index.boolean
isKeyChangePending()
void
setUsmDHUserAuthKeyChange(org.snmp4j.smi.OctetString newColValue)
void
setUsmDHUserOwnAuthKeyChange(org.snmp4j.smi.OctetString newColValue)
void
setUsmDHUserOwnPrivKeyChange(org.snmp4j.smi.OctetString newColValue)
void
setUsmDHUserPrivKeyChange(org.snmp4j.smi.OctetString newColValue)
void
setValue(int column, org.snmp4j.smi.Variable value)
Sets the value of a column of this row.-
Methods inherited from class org.snmp4j.agent.mo.DefaultMOMutableRow2PC
cleanup, cleanupRow, commit, getBaseRow, getIndex, getResultingValue, getUserObject, prepare, prepareRow, setBaseRow, setUserObject, size, toString, undo, undoRow
-
Methods inherited from class org.snmp4j.agent.mo.DefaultMOTableRow
compareTo, equals, getColumnValue, hashCode, toStringMembers
-
-
-
-
Method Detail
-
getUsmDHUserAuthKeyChange
public org.snmp4j.smi.OctetString getUsmDHUserAuthKeyChange()
-
setUsmDHUserAuthKeyChange
public void setUsmDHUserAuthKeyChange(org.snmp4j.smi.OctetString newColValue)
-
getUsmDHUserOwnAuthKeyChange
public org.snmp4j.smi.OctetString getUsmDHUserOwnAuthKeyChange()
-
setUsmDHUserOwnAuthKeyChange
public void setUsmDHUserOwnAuthKeyChange(org.snmp4j.smi.OctetString newColValue)
-
getUsmDHUserPrivKeyChange
public org.snmp4j.smi.OctetString getUsmDHUserPrivKeyChange()
-
setUsmDHUserPrivKeyChange
public void setUsmDHUserPrivKeyChange(org.snmp4j.smi.OctetString newColValue)
-
getUsmDHUserOwnPrivKeyChange
public org.snmp4j.smi.OctetString getUsmDHUserOwnPrivKeyChange()
-
setUsmDHUserOwnPrivKeyChange
public void setUsmDHUserOwnPrivKeyChange(org.snmp4j.smi.OctetString newColValue)
-
getValue
public org.snmp4j.smi.Variable getValue(int column)
Description copied from interface:MOTableRow
Gets the value at the specified column index.- Specified by:
getValue
in interfaceMOTableRow
- Overrides:
getValue
in classDefaultMOMutableRow2PC
- Parameters:
column
- the zero-based column index.- Returns:
- the value at the specified index.
-
setValue
public void setValue(int column, org.snmp4j.smi.Variable value)
Description copied from interface:MOMutableTableRow
Sets the value of a column of this row.- Specified by:
setValue
in interfaceMOMutableTableRow
- Overrides:
setValue
in classDefaultMOMutableRow2PC
- Parameters:
column
- the (zero-based) column index.value
- the new value for the specified column. Implementations of this method may not check the value's type to match the columns type for performance reasons. Thus, the caller have to make sure that the type's match to avoid runtime exceptions later.
-
getIndexDef
public MOTableIndex getIndexDef()
-
getAuthProtocol
public org.snmp4j.security.AuthenticationProtocol getAuthProtocol(MOTableRow changeSet)
-
getPrivProtocol
public org.snmp4j.security.PrivacyProtocol getPrivProtocol(MOTableRow changeSet)
-
commitRow
public void commitRow(SubRequest<?> subRequest, MOTableRow changeSet)
Description copied from interface:MOMutableRow2PC
Commits a row as described by the supplied change set. If the modification cannot be successfully committed, the error status of the suppliedsubRequest
should be set tocommitFailed
. Setting this error should be avoided under any circumstances.This method is called only once per modified row.
- Specified by:
commitRow
in interfaceMOMutableRow2PC<SubRequest<?>>
- Overrides:
commitRow
in classDefaultMOMutableRow2PC
- Parameters:
subRequest
- the sub-request that triggered the row change and that can be used to trigger the undo phase by setting its error status.changeSet
- a MOTableRow instance that represents the state of the row if all changes have been applied successfully.
-
getAuthKeyChange
public DHKeyInfo getAuthKeyChange()
-
getOwnAuthKeyChange
public DHKeyInfo getOwnAuthKeyChange()
-
getPrivKeyChange
public DHKeyInfo getPrivKeyChange()
-
getOwnPrivKeyChange
public DHKeyInfo getOwnPrivKeyChange()
-
getNewAuthKey
public byte[] getNewAuthKey()
-
getNewPrivKey
public byte[] getNewPrivKey()
-
clearDHKeyChange
public void clearDHKeyChange()
-
isKeyChangePending
public boolean isKeyChangePending()
-
-