Package io.anyline.nfc.bouncycastle.asn1
Class ASN1Primitive
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable,io.anyline.nfc.bouncycastle.util.Encodable
public abstract class ASN1Primitive extends ASN1Object
Base class for ASN.1 primitive objects. These are the actual objects used to generate byte encodings.
-
-
Method Summary
Modifier and Type Method Description voidencodeTo(OutputStream output)voidencodeTo(OutputStream output, String encoding)static ASN1PrimitivefromByteArray(Array<byte> data)Create a base ASN.1 object from a byte stream. final booleanequals(Object o)final booleanequals(ASN1Encodable other)final booleanequals(ASN1Primitive other)final ASN1PrimitivetoASN1Primitive()Method providing a primitive representation of this object suitable for encoding. abstract inthashCode()-
-
Method Detail
-
encodeTo
void encodeTo(OutputStream output)
-
encodeTo
void encodeTo(OutputStream output, String encoding)
-
fromByteArray
static ASN1Primitive fromByteArray(Array<byte> data)
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.
-
equals
final boolean equals(ASN1Encodable other)
-
equals
final boolean equals(ASN1Primitive other)
-
toASN1Primitive
final ASN1Primitive toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
- Returns:
a primitive representation of this object.
-
hashCode
abstract int hashCode()
-
-
-
-