org.apache.directory.shared.asn1.der
Class DERString

java.lang.Object
  extended byorg.apache.directory.shared.asn1.der.DERObject
      extended byorg.apache.directory.shared.asn1.der.DERString
All Implemented Interfaces:
DEREncodable
Direct Known Subclasses:
DERBMPString, DERGeneralizedTime, DERGeneralString, DERIA5String, DERNumericString, DERPrintableString, DERTeletexString, DERUniversalString, DERUTCTime, DERUTF8String, DERVisibleString

public abstract class DERString
extends DERObject

Interface for DER string objects.


Field Summary
 
Fields inherited from class org.apache.directory.shared.asn1.der.DERObject
tag, value
 
Method Summary
protected static java.lang.String byteArrayToString(byte[] bytes)
          Utility method for converting byte arrays to Strings.
 java.lang.String getString()
          Lazy accessor.
protected static byte[] stringToByteArray(java.lang.String string)
          Utility method for converting Strings to bytes.
 
Methods inherited from class org.apache.directory.shared.asn1.der.DERObject
encode, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public java.lang.String getString()
Lazy accessor.

Returns:
underlying byte array converted to a String

byteArrayToString

protected static java.lang.String byteArrayToString(byte[] bytes)
Utility method for converting byte arrays to Strings.

Parameters:
bytes -
Returns:
String

stringToByteArray

protected static byte[] stringToByteArray(java.lang.String string)
Utility method for converting Strings to bytes.

Parameters:
string -
Returns:
bytes


Copyright © 2004-2008 null. All Rights Reserved.