Class UsmDHParametersImpl

    • Constructor Detail

      • UsmDHParametersImpl

        public 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).
        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, see decodeBER(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 java.io.IOException
        Throws:
        java.io.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 internal value member and then call super.MOScalar.getValue() in the derived class.
        Overrides:
        getValue in class MOScalar<org.snmp4j.smi.OctetString>
        Returns:
        a non null Variable with the same syntax defined for this scalar object.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class MOScalar<org.snmp4j.smi.OctetString>