public abstract class ASN1Primitive extends ASN1Object
Modifier and Type | Method and Description |
---|---|
void |
encodeTo(OutputStream output) |
void |
encodeTo(OutputStream output,
String encoding) |
boolean |
equals(ASN1Encodable other) |
boolean |
equals(ASN1Primitive other) |
boolean |
equals(Object o) |
static ASN1Primitive |
fromByteArray(byte[] data)
Create a base ASN.1 object from a byte stream.
|
abstract int |
hashCode() |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
getEncoded, getEncoded, hasEncodedTagValue
public void encodeTo(OutputStream output) throws IOException
encodeTo
in class ASN1Object
IOException
public void encodeTo(OutputStream output, String encoding) throws IOException
encodeTo
in class ASN1Object
IOException
public static ASN1Primitive fromByteArray(byte[] data) throws IOException
data
- the byte stream to parse.IOException
- if there is a problem parsing the data, or parsing the stream did not exhaust the available data.public final boolean equals(Object o)
equals
in class ASN1Object
public final boolean equals(ASN1Encodable other)
public final boolean equals(ASN1Primitive other)
public final ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
public abstract int hashCode()
hashCode
in class ASN1Object
Copyright © 2021 BouncyCastle.org. All rights reserved.