public class Asn1Object
extends java.lang.Object
| Constructor and Description |
|---|
Asn1Object(Asn1Class c,
Asn1Type t,
boolean ctored,
int len,
byte... data) |
Asn1Object(byte tag,
int len,
byte... data) |
Asn1Object(Tag tag,
int len,
byte... data) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
asInteger()
Get the value as
BigInteger |
java.lang.Object |
asObject() |
Oid |
asOID() |
Asn1Object |
assertType(Asn1Type type) |
java.lang.String |
asString()
Get value as string.
|
DerParser |
createParser() |
boolean |
equals(java.lang.Object obj) |
Asn1Class |
getAsn1Class() |
int |
getLength() |
byte[] |
getPureValueBytes() |
Tag |
getTag() |
Asn1Type |
getType() |
byte[] |
getValue() |
int |
hashCode() |
boolean |
isConstructed() |
boolean |
isType(Asn1Type type) |
static Asn1Object |
nill() |
static Asn1Object |
objectIdentifier(Oid oid) |
static Asn1Object |
octetString(byte[] bytes) |
static Asn1Object |
sequence(byte[] bytes) |
java.math.BigInteger |
toInteger() |
Oid |
toOID() |
java.lang.String |
toString() |
public Asn1Object(byte tag,
int len,
byte... data)
public Asn1Object(Tag tag, int len, byte... data)
public Tag getTag()
public Asn1Class getAsn1Class()
public Asn1Type getType()
public boolean isType(Asn1Type type)
public Asn1Object assertType(Asn1Type type)
public boolean isConstructed()
public int getLength()
public byte[] getValue()
public byte[] getPureValueBytes()
public DerParser createParser()
public java.lang.Object asObject()
throws java.io.IOException
java.io.IOExceptionpublic java.math.BigInteger asInteger()
throws java.io.IOException
BigIntegerjava.io.IOException - if type not an Asn1Type.INTEGERpublic java.math.BigInteger toInteger()
public java.lang.String asString()
throws java.io.IOException
java.io.IOException - ifpublic Oid asOID() throws java.io.IOException
java.io.IOExceptionpublic Oid toOID() throws java.io.IOException
java.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic static Asn1Object sequence(byte[] bytes)
public static Asn1Object octetString(byte[] bytes)
public static Asn1Object nill()
public static Asn1Object objectIdentifier(Oid oid)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014-2021 Tomitribe Corporation. All Rights Reserved.