org.eclipse.higgins.keystore.common.utils
Class Asn1Node

java.lang.Object
  extended byorg.eclipse.higgins.keystore.common.utils.Asn1Node

public class Asn1Node
extends Object


Field Summary
static int Application
           
static int Ber_Context
           
static int Class_None
           
static int Constructed
           
static int Primitive
           
static int Private
           
static byte tag_BitString
           
static byte tag_BMPString
           
static byte tag_Boolean
           
static byte tag_Enumerated
           
static byte tag_GeneralizedTime
           
static byte tag_GeneralString
           
static byte tag_IA5String
           
static byte tag_Integer
           
static byte tag_Null
           
static byte tag_ObjectId
           
static byte tag_OctetString
           
static byte tag_PrintableString
           
static byte tag_Sequence
           
static byte tag_SequenceOf
           
static byte tag_Set
           
static byte tag_SetOf
           
static byte tag_T61String
           
static byte tag_UniversalString
           
static byte tag_UtcTime
           
static byte tag_UTF8String
           
static int Type_None
           
static int Universal
           
static int Z_ERROR
           
static int Z_OK
           
 
Method Summary
 BigInteger getBigInteger()
           
 List getCollection()
           
static Asn1Node getInstance(byte[] value)
           
static Asn1Node getInstance(InputStream stream)
           
 int getInteger()
           
 int getTag()
           
 byte[] getValue()
           
 String getValueAsBMPString()
           
 String getValueAsGeneralString()
           
 String getValueAsIA5String()
           
 String getValueAsPrintableString()
           
 String getValueAsString()
           
 String getValueAsT61String()
           
 String getValueAsUTF8String()
           
 boolean isApplication()
           
 boolean isConstructed()
           
 boolean isConstructed(byte byte0)
           
 boolean isContextSpecific()
           
 boolean isContextSpecific(byte byte0)
           
 boolean isUniversal()
           
 void setCollection(ArrayList collection)
           
 void setTag(int tag)
           
 void setValue(byte[] value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Type_None

public static final int Type_None
See Also:
Constant Field Values

Primitive

public static final int Primitive
See Also:
Constant Field Values

Constructed

public static final int Constructed
See Also:
Constant Field Values

Class_None

public static final int Class_None
See Also:
Constant Field Values

Universal

public static final int Universal
See Also:
Constant Field Values

Application

public static final int Application
See Also:
Constant Field Values

Ber_Context

public static final int Ber_Context
See Also:
Constant Field Values

Private

public static final int Private
See Also:
Constant Field Values

Z_ERROR

public static final int Z_ERROR
See Also:
Constant Field Values

Z_OK

public static final int Z_OK
See Also:
Constant Field Values

tag_Boolean

public static final byte tag_Boolean
See Also:
Constant Field Values

tag_Integer

public static final byte tag_Integer
See Also:
Constant Field Values

tag_BitString

public static final byte tag_BitString
See Also:
Constant Field Values

tag_OctetString

public static final byte tag_OctetString
See Also:
Constant Field Values

tag_Null

public static final byte tag_Null
See Also:
Constant Field Values

tag_ObjectId

public static final byte tag_ObjectId
See Also:
Constant Field Values

tag_Enumerated

public static final byte tag_Enumerated
See Also:
Constant Field Values

tag_UTF8String

public static final byte tag_UTF8String
See Also:
Constant Field Values

tag_PrintableString

public static final byte tag_PrintableString
See Also:
Constant Field Values

tag_T61String

public static final byte tag_T61String
See Also:
Constant Field Values

tag_IA5String

public static final byte tag_IA5String
See Also:
Constant Field Values

tag_UtcTime

public static final byte tag_UtcTime
See Also:
Constant Field Values

tag_GeneralizedTime

public static final byte tag_GeneralizedTime
See Also:
Constant Field Values

tag_GeneralString

public static final byte tag_GeneralString
See Also:
Constant Field Values

tag_UniversalString

public static final byte tag_UniversalString
See Also:
Constant Field Values

tag_BMPString

public static final byte tag_BMPString
See Also:
Constant Field Values

tag_Sequence

public static final byte tag_Sequence
See Also:
Constant Field Values

tag_SequenceOf

public static final byte tag_SequenceOf
See Also:
Constant Field Values

tag_Set

public static final byte tag_Set
See Also:
Constant Field Values

tag_SetOf

public static final byte tag_SetOf
See Also:
Constant Field Values
Method Detail

getInstance

public static Asn1Node getInstance(byte[] value)

getInstance

public static Asn1Node getInstance(InputStream stream)

getTag

public int getTag()

setTag

public void setTag(int tag)

isUniversal

public boolean isUniversal()

isApplication

public boolean isApplication()

isContextSpecific

public boolean isContextSpecific()

isContextSpecific

public boolean isContextSpecific(byte byte0)

isConstructed

public boolean isConstructed()

isConstructed

public boolean isConstructed(byte byte0)

getCollection

public List getCollection()

setCollection

public void setCollection(ArrayList collection)

getValue

public byte[] getValue()

setValue

public void setValue(byte[] value)

getValueAsString

public String getValueAsString()
                        throws UnsupportedEncodingException
Returns:
Throws:
CertificateParsingException
UnsupportedEncodingException

getValueAsIA5String

public String getValueAsIA5String()
                           throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getValueAsBMPString

public String getValueAsBMPString()
                           throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getValueAsGeneralString

public String getValueAsGeneralString()
                               throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getValueAsT61String

public String getValueAsT61String()
                           throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getValueAsPrintableString

public String getValueAsPrintableString()
                                 throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getValueAsUTF8String

public String getValueAsUTF8String()
                            throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getInteger

public int getInteger()
               throws CertificateParsingException
Throws:
CertificateParsingException

getBigInteger

public BigInteger getBigInteger()
                         throws CertificateParsingException
Throws:
CertificateParsingException