public abstract class ASN1Primitive extends ASN1Object
| Constructor and Description |
|---|
ASN1Primitive() |
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract boolean |
asn1Equals(ASN1Primitive o) |
(package private) abstract void |
encode(ASN1OutputStream out) |
(package private) abstract int |
encodedLength() |
boolean |
equals(java.lang.Object o) |
static ASN1Primitive |
fromByteArray(byte[] data)
Create a base ASN.1 object from a byte stream.
|
abstract int |
hashCode() |
(package private) abstract boolean |
isConstructed() |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
(package private) ASN1Primitive |
toDERObject()
Return the current object as one which encodes using Distinguished Encoding Rules.
|
(package private) ASN1Primitive |
toDLObject()
Return the current object as one which encodes using Definite Length encoding.
|
getEncoded, getEncoded, hasEncodedTagValue, toASN1ObjectASN1Primitive()
public static ASN1Primitive fromByteArray(byte[] data) throws java.io.IOException
data - the byte stream to parse.java.io.IOException - if there is a problem parsing the data.public final boolean equals(java.lang.Object o)
equals in class ASN1Objectpublic ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1ObjectASN1Primitive toDERObject()
ASN1Primitive toDLObject()
public abstract int hashCode()
hashCode in class ASN1Objectabstract boolean isConstructed()
abstract int encodedLength() throws java.io.IOException
java.io.IOExceptionabstract void encode(ASN1OutputStream out) throws java.io.IOException
java.io.IOExceptionabstract boolean asn1Equals(ASN1Primitive o)