org.apache.directory.shared.asn1.der
Class DERString
java.lang.Object
org.apache.directory.shared.asn1.der.DERObject
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.
Fields inherited from class org.apache.directory.shared.asn1.der.DERObject |
tag, value |
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.