Class ASN1Object
java.lang.Object
org.apache.sshd.common.util.io.der.ASN1Object
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionASN1Object
(byte tag, int len, byte... data) ASN1Object
(ASN1Class c, ASN1Type t, boolean ctored, int len, byte... data) -
Method Summary
-
Field Details
-
CONSTRUCTED
public static final byte CONSTRUCTED- See Also:
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
objClass
-
objType
-
constructed
private boolean constructed -
length
private int length -
value
private byte[] value
-
-
Constructor Details
-
ASN1Object
public ASN1Object() -
ASN1Object
public ASN1Object(byte tag, int len, byte... data) -
ASN1Object
-
-
Method Details
-
getObjClass
-
setObjClass
-
getObjType
-
setObjType
-
isConstructed
public boolean isConstructed() -
setConstructed
public void setConstructed(boolean c) -
getLength
public int getLength() -
setLength
public void setLength(int l) -
getValue
public byte[] getValue() -
getPureValueBytes
public byte[] getPureValueBytes() -
setValue
public void setValue(byte[] v) -
createParser
-
asObject
- Throws:
IOException
-
asInteger
Get the value asBigInteger
- Returns:
- BigInteger
- Throws:
IOException
- if type not anASN1Type.INTEGER
-
toInteger
-
asString
Get value as string. Most strings are treated as Latin-1.- Returns:
- Java string
- Throws:
IOException
- if
-
asOID
- Throws:
IOException
-
toOID
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
clone
-
toString
-