com.lowagie.bc.asn1
Class ASN1Encodable

java.lang.Object
  extended bycom.lowagie.bc.asn1.ASN1Encodable
All Implemented Interfaces:
DEREncodable

public abstract class ASN1Encodable
extends Object
implements DEREncodable

Abstract Syntax Notation One (ASN.1) is a formal language for abstractly describing messages to be exchanged between distributed computer systems.


Constructor Summary
ASN1Encodable()
           
 
Method Summary
 boolean equals(Object o)
           
 DERObject getDERObject()
           
 byte[] getEncoded()
          Encodes the ASN1Encodable object.
 int hashCode()
           
abstract  DERObject toASN1Object()
          Abstract method that returns the object as an ASN1 object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASN1Encodable

public ASN1Encodable()
Method Detail

getEncoded

public byte[] getEncoded()
                  throws IOException
Encodes the ASN1Encodable object.

Returns:
an encoded bytearray
Throws:
IOException

hashCode

public int hashCode()
See Also:
Object.hashCode()

equals

public boolean equals(Object o)
See Also:
Object.equals(java.lang.Object)

getDERObject

public DERObject getDERObject()
Specified by:
getDERObject in interface DEREncodable
See Also:
DEREncodable.getDERObject()

toASN1Object

public abstract DERObject toASN1Object()
Abstract method that returns the object as an ASN1 object.

Returns:
an encodable object