public class Asn1Value
extends java.lang.Object
| Constructor and Description | 
|---|
Asn1Value()  | 
| Modifier and Type | Method and Description | 
|---|---|
static byte[] | 
parseString(java.lang.String value)
This overloaded version of the parseString method sets the numbits
 holder value to null. 
 | 
static byte[] | 
parseString(java.lang.String value,
           IntHolder numbits)
This static method parses the given ASN.1 value text (either a
 binary or hex data string) and returns the value in a binary
 byte array. 
 | 
static boolean | 
stringEqualsBytes(java.lang.String value,
                 byte[] data)
This static method parses the given ASN.1 value text (either a
 binary or hex data string) and compares it with the given byte array. 
 | 
static boolean | 
stringEqualsBytes(java.lang.String value,
                 byte[] data,
                 int nbits)
This static method parses the given ASN.1 value text (either a
 binary or hex data string) and compares it with the given byte array. 
 | 
public static boolean stringEqualsBytes(java.lang.String value,
                                        byte[] data)
value - The ASN.1 value specification textdata - Array of bytes to compare string with.public static boolean stringEqualsBytes(java.lang.String value,
                                        byte[] data,
                                        int nbits)
                                 throws Asn1ValueParseException
value - The ASN.1 value specification textdata - Array of bytes to compare string with.nbits - Number of bits in data to compare.Asn1ValueParseExceptionpublic static byte[] parseString(java.lang.String value,
                                 IntHolder numbits)
                          throws Asn1ValueParseException
value - The ASN.1 value specification textnumbits - Holder to receive number of bits in stringAsn1ValueParseExceptionpublic static byte[] parseString(java.lang.String value)
                          throws Asn1ValueParseException
value - The ASN.1 value specification textAsn1ValueParseException