public class ASN1Object extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static byte |
CONSTRUCTED |
Constructor and Description |
---|
ASN1Object() |
ASN1Object(ASN1Class c,
ASN1Type t,
boolean ctored,
int len,
byte... data) |
ASN1Object(byte tag,
int len,
byte... data) |
Modifier and Type | Method and Description |
---|---|
BigInteger |
asInteger()
Get the value as
BigInteger |
Object |
asObject() |
List<Integer> |
asOID() |
String |
asString()
Get value as string.
|
ASN1Object |
clone() |
DERParser |
createParser() |
boolean |
equals(Object obj) |
int |
getLength() |
ASN1Class |
getObjClass() |
ASN1Type |
getObjType() |
byte[] |
getPureValueBytes() |
byte[] |
getValue() |
int |
hashCode() |
boolean |
isConstructed() |
void |
setConstructed(boolean c) |
void |
setLength(int l) |
void |
setObjClass(ASN1Class c) |
void |
setObjType(ASN1Type y) |
void |
setValue(byte[] v) |
BigInteger |
toInteger() |
List<Integer> |
toOID() |
String |
toString() |
public static final byte CONSTRUCTED
public ASN1Object()
public ASN1Object(byte tag, int len, byte... data)
public ASN1Class getObjClass()
public void setObjClass(ASN1Class c)
public ASN1Type getObjType()
public void setObjType(ASN1Type y)
public boolean isConstructed()
public void setConstructed(boolean c)
public int getLength()
public void setLength(int l)
public byte[] getValue()
public byte[] getPureValueBytes()
public void setValue(byte[] v)
public DERParser createParser()
public Object asObject() throws IOException
IOException
public BigInteger asInteger() throws IOException
BigInteger
IOException
- if type not an ASN1Type.INTEGER
public BigInteger toInteger()
public String asString() throws IOException
IOException
- ifpublic List<Integer> asOID() throws IOException
IOException
public List<Integer> toOID() throws IOException
IOException
public ASN1Object clone()
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.