com.mindbright.asn1
Class ASN1String

java.lang.Object
  extended bycom.mindbright.asn1.ASN1Object
      extended bycom.mindbright.asn1.ASN1String
Direct Known Subclasses:
ASN1BitString, ASN1CharString, ASN1GeneralizedTime, ASN1OctetString, ASN1UTCTime

public class ASN1String
extends ASN1Object


Field Summary
protected  byte[] value
           
 
Fields inherited from class com.mindbright.asn1.ASN1Object
isSet, tag
 
Constructor Summary
ASN1String(int tag)
           
 
Method Summary
 void decodeValue(ASN1Decoder decoder, java.io.InputStream in, int len)
           
 int encodeValue(ASN1Encoder encoder, java.io.OutputStream out)
           
 byte[] getRaw()
           
 void setRaw(byte[] value)
           
 
Methods inherited from class com.mindbright.asn1.ASN1Object
decodeValue, getTag, getType, isSet, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected byte[] value
Constructor Detail

ASN1String

public ASN1String(int tag)
Method Detail

encodeValue

public int encodeValue(ASN1Encoder encoder,
                       java.io.OutputStream out)
                throws java.io.IOException
Specified by:
encodeValue in class ASN1Object
Throws:
java.io.IOException

decodeValue

public void decodeValue(ASN1Decoder decoder,
                        java.io.InputStream in,
                        int len)
                 throws java.io.IOException
Overrides:
decodeValue in class ASN1Object
Throws:
java.io.IOException

setRaw

public void setRaw(byte[] value)

getRaw

public byte[] getRaw()