ManagedObject
, ManagedObjectValueAccess
, ChangeableManagedObject
, MOScope
, RandomAccessManagedObject
, RegisteredManagedObject
, SerializableManagedObject
SnmpUsmDhObjectsMib.UsmDHParameters
public class UsmDHParametersImpl extends MOScalar<org.snmp4j.smi.OctetString>
UsmDHParametersImpl
class holds the Diffie Hellman parameters for doing a Diffie-Hellman key agreement.Constructor | Description |
---|---|
UsmDHParametersImpl(org.snmp4j.smi.OID id,
MOAccess access,
org.snmp4j.smi.OctetString value) |
Create a
DHParameters instance that uses the Oakeley Group 1 Diffie Hellman parameters defined in
RFC 2409 (see also DHGroups ). |
Modifier and Type | Method | Description |
---|---|---|
void |
decodeBER(org.snmp4j.smi.OctetString berValue) |
|
org.snmp4j.smi.OctetString |
encodeBER() |
Encode this parameter set as BER octet string.
|
org.snmp4j.security.dh.DHParameters |
getDHParamters() |
|
org.snmp4j.smi.OctetString |
getValue() |
Returns the actual value of this scalar managed object.
|
java.lang.String |
toString() |
addMOChangeListener, addMOValueValidationListener, changeValue, checkRequestScope, cleanup, commit, covers, exportInstance, find, fireAfterMOChange, fireAfterPrepareMOChange, fireBeforeMOChange, fireBeforePrepareMOChange, fireValidate, get, getAccess, getID, getLowerBound, getOid, getScope, getSingleInstanceScope, getSyntax, getUpperBound, getValue, importInstance, instanceCount, instanceIterator, isCovered, isLowerIncluded, isOverlapping, isUpperIncluded, isValueOK, isVolatile, load, next, prepare, removeMOChangeListener, removeMOValueValidationListener, save, setValue, setValue, setVolatile, toStringDetails, undo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInstanceSubID
public UsmDHParametersImpl(org.snmp4j.smi.OID id, MOAccess access, org.snmp4j.smi.OctetString value)
DHParameters
instance that uses the Oakeley Group 1 Diffie Hellman parameters defined in
RFC 2409 (see also DHGroups
).id
- the instance OID of the scalar instance (last sub-identifier should be
zero).access
- the maximum access level supported by this instance.value
- the initial value that defines the parameters as BER encoded OCTET STRING,
see decodeBER(OctetString)
.public org.snmp4j.security.dh.DHParameters getDHParamters()
public org.snmp4j.smi.OctetString encodeBER()
null
is returned.public void decodeBER(org.snmp4j.smi.OctetString berValue) throws java.io.IOException
java.io.IOException
public org.snmp4j.smi.OctetString getValue()
MOScalar
value
member and
then call super.
MOScalar.getValue()
in the derived class.Copyright © 2018 SNMP4J.org. All rights reserved.