|
Bouncy Castle Cryptography Library 1.85 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.ASN1Primitive
Base class for ASN.1 primitive objects. These are the actual objects used to generate byte encodings.
| Method Summary | |
void |
encodeTo(java.io.OutputStream output)
|
void |
encodeTo(java.io.OutputStream output,
java.lang.String encoding)
|
boolean |
equals(ASN1Encodable other)
|
boolean |
equals(ASN1Primitive other)
|
boolean |
equals(java.lang.Object o)
|
static ASN1Primitive |
fromByteArray(byte[] data)
Parse an ASN.1 (BER) encoding from a byte array. |
static ASN1Primitive |
fromStream(java.io.InputStream input)
Parse the first ASN.1 (BER) encoding from an InputStream.The stream is not closed by this method and may
contain further data beyond the first ASN.1 encoding. |
abstract int |
hashCode()
|
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding. |
| Methods inherited from class org.bouncycastle.asn1.ASN1Object |
getEncoded, getEncoded, hasEncodedTagValue |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void encodeTo(java.io.OutputStream output)
throws java.io.IOException
encodeTo in class ASN1Objectjava.io.IOException
public void encodeTo(java.io.OutputStream output,
java.lang.String encoding)
throws java.io.IOException
encodeTo in class ASN1Objectjava.io.IOException
public static ASN1Primitive fromByteArray(byte[] data)
throws java.io.IOException
data - the byte array to parse.
java.io.IOException - if there is a problem parsing the data, or parsing did not exhaust the available data.
public static ASN1Primitive fromStream(java.io.InputStream input)
throws java.io.IOException
InputStream.The stream is not closed by this method and may
contain further data beyond the first ASN.1 encoding.
java.io.IOException - if there is a problem parsing the data.public final boolean equals(java.lang.Object o)
equals in class ASN1Objectpublic final boolean equals(ASN1Encodable other)
public final boolean equals(ASN1Primitive other)
public final ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Objectpublic abstract int hashCode()
hashCode in class ASN1Object
|
Bouncy Castle Cryptography Library 1.85 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||