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 voidclearDHKeyChange()voidcommitRow(SubRequest<?> subRequest, MOTableRow changeSet)Commits a row as described by the supplied change set.DHKeyInfogetAuthKeyChange()org.snmp4j.security.AuthenticationProtocolgetAuthProtocol(MOTableRow changeSet)MOTableIndexgetIndexDef()byte[]getNewAuthKey()byte[]getNewPrivKey()DHKeyInfogetOwnAuthKeyChange()DHKeyInfogetOwnPrivKeyChange()DHKeyInfogetPrivKeyChange()org.snmp4j.security.PrivacyProtocolgetPrivProtocol(MOTableRow changeSet)org.snmp4j.smi.OctetStringgetUsmDHUserAuthKeyChange()org.snmp4j.smi.OctetStringgetUsmDHUserOwnAuthKeyChange()org.snmp4j.smi.OctetStringgetUsmDHUserOwnPrivKeyChange()org.snmp4j.smi.OctetStringgetUsmDHUserPrivKeyChange()org.snmp4j.smi.VariablegetValue(int column)Gets the value at the specified column index.booleanisKeyChangePending()voidsetUsmDHUserAuthKeyChange(org.snmp4j.smi.OctetString newColValue)voidsetUsmDHUserOwnAuthKeyChange(org.snmp4j.smi.OctetString newColValue)voidsetUsmDHUserOwnPrivKeyChange(org.snmp4j.smi.OctetString newColValue)voidsetUsmDHUserPrivKeyChange(org.snmp4j.smi.OctetString newColValue)voidsetValue(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:MOTableRowGets the value at the specified column index.- Specified by:
getValuein interfaceMOTableRow- Overrides:
getValuein 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:MOMutableTableRowSets the value of a column of this row.- Specified by:
setValuein interfaceMOMutableTableRow- Overrides:
setValuein 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:MOMutableRow2PCCommits a row as described by the supplied change set. If the modification cannot be successfully committed, the error status of the suppliedsubRequestshould be set tocommitFailed. Setting this error should be avoided under any circumstances.This method is called only once per modified row.
- Specified by:
commitRowin interfaceMOMutableRow2PC<SubRequest<?>>- Overrides:
commitRowin 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()
-
-