Package com.oss.asn1

Class ASN1Type

All Implemented Interfaces:
Serializable, Cloneable

public class ASN1Type extends AbstractData
The ASN1Type class is used to implement the '&Type' field of information classes.
Since:
ASN.1/Java 1.0-beta A
See Also:
  • Constructor Details

    • ASN1Type

      public ASN1Type()
      The default constructor.
    • ASN1Type

      public ASN1Type(String packageName, String className)
      Construct from a fully-qualified name of a java class that implements an ASN.1 type.
      Parameters:
      packageName - the package name of the java class.
      className - the name of the class.
  • Method Details

    • abstractEqualTo

      public boolean abstractEqualTo(AbstractData that)
      Compare 'this' object to another object to see if their contents are the same, AbstractData.abstractEqualTo() implementation.
      Specified by:
      abstractEqualTo in class AbstractData
      Parameters:
      that - the AbstractData object to compare 'this' object to.
      Returns:
      true if contents of both objects are the same.
    • equalTo

      public boolean equalTo(ASN1Type that)
      Compare 'this' object to another ASN1Type object to see if their contents are the same.
      Parameters:
      that - the ASN1Type object to compare 'this' object to.
      Returns:
      true if contents of both objects are the same.
    • delete

      public void delete()
      Destroy the instance of the AbstractData. The contract of this method is to facilitate garbage collection by explicit destruction of the data that is no longer needed.
      Overrides:
      delete in class AbstractData
    • clone

      public Object clone()
      Clone 'this' object.
      Overrides:
      clone in class AbstractData
      Returns:
      deep copy of 'this' object.