Bouncy Castle Cryptography 1.49

org.bouncycastle.asn1
Class ASN1Primitive

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Object
      extended by org.bouncycastle.asn1.ASN1Primitive
All Implemented Interfaces:
ASN1Encodable
Direct Known Subclasses:
ASN1Null, ASN1OctetString, ASN1Sequence, ASN1Set, ASN1TaggedObject, DERApplicationSpecific, DERBitString, DERBMPString, DERBoolean, DEREnumerated, DERExternal, DERGeneralizedTime, DERGeneralString, DERIA5String, DERInteger, DERNumericString, DERObjectIdentifier, DERPrintableString, DERT61String, DERT61UTF8String, DERUniversalString, DERUTCTime, DERUTF8String, DERVisibleString

public abstract class ASN1Primitive
extends ASN1Object


Method Summary
 boolean equals(java.lang.Object o)
           
static ASN1Primitive fromByteArray(byte[] data)
          Create a base ASN.1 object from a byte stream.
abstract  int hashCode()
           
 ASN1Primitive toASN1Primitive()
           
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromByteArray

public static ASN1Primitive fromByteArray(byte[] data)
                                   throws java.io.IOException
Create a base ASN.1 object from a byte stream.

Parameters:
data - the byte stream to parse.
Returns:
the base ASN.1 object represented by the byte stream.
Throws:
java.io.IOException - if there is a problem parsing the data.

equals

public final boolean equals(java.lang.Object o)
Overrides:
equals in class ASN1Object

toASN1Primitive

public ASN1Primitive toASN1Primitive()
Specified by:
toASN1Primitive in interface ASN1Encodable
Specified by:
toASN1Primitive in class ASN1Object

hashCode

public abstract int hashCode()
Overrides:
hashCode in class ASN1Object

Bouncy Castle Cryptography 1.49