Class SnmpOpaque

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, SnmpSyntax

    public class SnmpOpaque
    extends SnmpOctetString
    The SnmpOpaque class is an extension of the octet string class and is used to pass opaque data. Opaque data is information that isn't interperted by the manager in general.
    Author:
    Brian Weaver
    See Also:
    Serialized Form
    • Field Detail

      • ASNTYPE

        public static final byte ASNTYPE
        The ASN.1 type for this class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SnmpOpaque

        public SnmpOpaque()
        The default constructor for this class.
      • SnmpOpaque

        public SnmpOpaque​(byte[] data)
        Constructs an opaque object with the passed data.
        Parameters:
        data - The opaque data.
      • SnmpOpaque

        public SnmpOpaque​(SnmpOpaque second)
        Constructs an object that is a duplicate of the passed object.
        Parameters:
        second - The object to be duplicated.
      • SnmpOpaque

        public SnmpOpaque​(SnmpOctetString second)
        Constructs an object that is a duplicate of the passed object.
        Parameters:
        second - The object to be duplicated.
    • Method Detail

      • typeId

        public byte typeId()
        Returns the defined ASN.1 type identifier.
        Specified by:
        typeId in interface SnmpSyntax
        Overrides:
        typeId in class SnmpOctetString
        Returns:
        The ASN.1 identifier.
      • clone

        public java.lang.Object clone()
        Returns a duplicate of the current object.
        Overrides:
        clone in class SnmpOctetString
        Returns:
        A duplicate of self
      • toString

        public java.lang.String toString()
        Returns a string representation of the object.
        Overrides:
        toString in class SnmpOctetString