- java.lang.Object
-
- org.snmp4j.agent.mo.MOScalar<org.snmp4j.smi.OctetString>
-
- org.snmp4j.agent.mo.snmp.dh.UsmDHParametersImpl
-
- All Implemented Interfaces:
ManagedObject<SubRequest<?>>
,ManagedObjectValueAccess<SubRequest<?>>
,ChangeableManagedObject<SubRequest<?>>
,GenericManagedObject
,MOScope
,RandomAccessManagedObject<SubRequest<?>>
,RegisteredManagedObject<SubRequest<?>>
,SerializableManagedObject<SubRequest<?>>
- Direct Known Subclasses:
SnmpUsmDhObjectsMib.UsmDHParameters
public class UsmDHParametersImpl extends MOScalar<org.snmp4j.smi.OctetString>
TheUsmDHParametersImpl
class holds the Diffie Hellman parameters for doing a Diffie-Hellman key agreement.- Since:
- 3.0
- Author:
- Frank Fock
-
-
Constructor Summary
Constructors Constructor Description UsmDHParametersImpl(org.snmp4j.smi.OID id, MOAccess access, org.snmp4j.smi.OctetString value)
Create aDHParameters
instance that uses the Oakeley Group 1 Diffie Hellman parameters defined in RFC 2409 (see alsoDHGroups
).
-
Method Summary
All Methods Instance Methods Concrete Methods 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.String
toString()
-
Methods inherited from class org.snmp4j.agent.mo.MOScalar
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.snmp4j.agent.RandomAccessManagedObject
getInstanceSubID, isVolatile
-
-
-
-
Constructor Detail
-
UsmDHParametersImpl
public UsmDHParametersImpl(org.snmp4j.smi.OID id, MOAccess access, org.snmp4j.smi.OctetString value)
Create aDHParameters
instance that uses the Oakeley Group 1 Diffie Hellman parameters defined in RFC 2409 (see alsoDHGroups
).- Parameters:
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, seedecodeBER(OctetString)
.
-
-
Method Detail
-
getDHParamters
public org.snmp4j.security.dh.DHParameters getDHParamters()
-
encodeBER
public org.snmp4j.smi.OctetString encodeBER()
Encode this parameter set as BER octet string.- Returns:
- the PKCS#3 encoded parameter octet string. If the encoding fails,
null
is returned.
-
decodeBER
public void decodeBER(org.snmp4j.smi.OctetString berValue) throws IOException
- Throws:
IOException
-
getValue
public org.snmp4j.smi.OctetString getValue()
Description copied from class:MOScalar
Returns the actual value of this scalar managed object. For a basic instrumentation, overwrite this method to provide always the actual value and/or to update the internalvalue
member and then callsuper.
MOScalar.getValue()
in the derived class.
-
-