public class IA5StringConverter extends java.lang.Object implements AVAValueConverter
AVAValueConverter| Constructor and Description |
|---|
IA5StringConverter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAsString(DerValue avaValue)
Converts a DER encoded value to a string, not encoded in any form.
|
DerValue |
getValue(byte[] berStream)
Converts a BER encoded value to a DER encoded attribute value.
|
DerValue |
getValue(java.lang.String valueString)
Converts a string to a DER encoded attribute value.
|
DerValue |
getValue(java.lang.String valueString,
byte[] tags)
Converts a string to a DER encoded attribute value.
|
public DerValue getValue(java.lang.String valueString) throws java.io.IOException
AVAValueConvertergetValue in interface AVAValueConvertervalueString - An AVA value string not encoded in any form.java.io.IOException - if an error occurs during the conversion.public DerValue getValue(java.lang.String valueString, byte[] tags) throws java.io.IOException
AVAValueConvertergetValue in interface AVAValueConvertervalueString - An AVA value string not encoded in any form.java.io.IOException - if an error occurs during the conversion.public DerValue getValue(byte[] berStream) throws java.io.IOException
AVAValueConvertergetValue in interface AVAValueConverterberStream - A byte array of the BER encoded AVA value.java.io.IOExceptionpublic java.lang.String getAsString(DerValue avaValue) throws java.io.IOException
AVAValueConvertergetAsString in interface AVAValueConverteravaValue - A DerValue object.java.io.IOException - if an error occurs during the conversion.