Package com.jcraft.jsch.asn1
Class ASN1
- java.lang.Object
-
- com.jcraft.jsch.asn1.ASN1
-
public class ASN1 extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getContent()ASN1[]getContents()byte[]getRaw()intgetType()booleanisBITSTRING()booleanisCONTEXTCONSTRUCTED(int tag)booleanisCONTEXTPRIMITIVE(int tag)booleanisINTEGER()booleanisNULL()booleanisOBJECT()booleanisOCTETSTRING()booleanisSEQUENCE()static intparseASN1IntegerAsInt(byte[] content)
-
-
-
Constructor Detail
-
ASN1
public ASN1(byte[] buf) throws ASN1Exception- Throws:
ASN1Exception
-
ASN1
public ASN1(byte[] buf, int start, int length) throws ASN1Exception- Throws:
ASN1Exception
-
-
Method Detail
-
getType
public int getType()
-
isSEQUENCE
public boolean isSEQUENCE()
-
isINTEGER
public boolean isINTEGER()
-
isOBJECT
public boolean isOBJECT()
-
isOCTETSTRING
public boolean isOCTETSTRING()
-
isNULL
public boolean isNULL()
-
isBITSTRING
public boolean isBITSTRING()
-
isCONTEXTPRIMITIVE
public boolean isCONTEXTPRIMITIVE(int tag)
-
isCONTEXTCONSTRUCTED
public boolean isCONTEXTCONSTRUCTED(int tag)
-
getContent
public byte[] getContent()
-
getContents
public ASN1[] getContents() throws ASN1Exception
- Throws:
ASN1Exception
-
getRaw
public byte[] getRaw()
-
parseASN1IntegerAsInt
public static int parseASN1IntegerAsInt(byte[] content) throws java.lang.ArithmeticException- Throws:
java.lang.ArithmeticException
-
-