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

java.lang.Object
  extended by org.apache.directory.shared.asn1.der.DERObject
      extended by org.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 String byteArrayToString(byte[] bytes)
          Utility method for converting byte arrays to Strings.
 String getString()
          Lazy accessor.
protected static byte[] stringToByteArray(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 String getString()
Lazy accessor.

Returns:
underlying byte array converted to a String

byteArrayToString

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

Parameters:
bytes -
Returns:
String

stringToByteArray

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

Parameters:
string -
Returns:
bytes


Copyright © 2004-2012. All Rights Reserved.