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
AVAValueConverter
getValue
in interface AVAValueConverter
valueString
- 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
AVAValueConverter
getValue
in interface AVAValueConverter
valueString
- 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
AVAValueConverter
getValue
in interface AVAValueConverter
berStream
- A byte array of the BER encoded AVA value.java.io.IOException
public java.lang.String getAsString(DerValue avaValue) throws java.io.IOException
AVAValueConverter
getAsString
in interface AVAValueConverter
avaValue
- A DerValue object.java.io.IOException
- if an error occurs during the conversion.