Class DERExternal

    • Constructor Detail

      • DERExternal

        public DERExternal​(ASN1ObjectIdentifier directReference,
                           ASN1Integer indirectReference,
                           ASN1Primitive dataValueDescriptor,
                           DERTaggedObject externalData)
        Creates a new instance of DERExternal See X.690 for more informations about the meaning of these parameters
        Parameters:
        directReference - The direct reference or null if not set.
        indirectReference - The indirect reference or null if not set.
        dataValueDescriptor - The data value descriptor or null if not set.
        externalData - The external data in its encoded form.
      • DERExternal

        public DERExternal​(ASN1ObjectIdentifier directReference,
                           ASN1Integer indirectReference,
                           ASN1Primitive dataValueDescriptor,
                           int encoding,
                           ASN1Primitive externalData)
        Creates a new instance of DERExternal. See X.690 for more informations about the meaning of these parameters
        Parameters:
        directReference - The direct reference or null if not set.
        indirectReference - The indirect reference or null if not set.
        dataValueDescriptor - The data value descriptor or null if not set.
        encoding - The encoding to be used for the external data
        externalData - The external data
    • Method Detail

      • hashCode

        public int hashCode()
        Description copied from class: Object
        Returns an integer hash code for this object. By contract, any two objects for which Object.equals(java.lang.Object) returns true must return the same hash code value. This means that subclasses of Object usually override both methods or neither method.

        Note that hash values must not change over time unless information used in equals comparisons also changes.

        See Writing a correct hashCode method if you intend implementing your own hashCode method.

        Specified by:
        hashCode in class ASN1Primitive
        Returns:
        this object's hash code.
        See Also:
        Object.equals(java.lang.Object)
      • getDataValueDescriptor

        public ASN1Primitive getDataValueDescriptor()
        Returns the data value descriptor
        Returns:
        The descriptor
      • getDirectReference

        public ASN1ObjectIdentifier getDirectReference()
        Returns the direct reference of the external element
        Returns:
        The reference
      • getEncoding

        public int getEncoding()
        Returns the encoding of the content. Valid values are
        • 0 single-ASN1-type
        • 1 OCTET STRING
        • 2 BIT STRING
        Returns:
        The encoding
      • getExternalContent

        public ASN1Primitive getExternalContent()
        Returns the content of this element
        Returns:
        The content
      • getIndirectReference

        public ASN1Integer getIndirectReference()
        Returns the indirect reference of this element
        Returns:
        The reference