public interface AVAValueConverter
For example, to convert a string, such as an organization name for the "O" attribute to a DerValue, the "O" attribute is mapped to the DirStrConverter which is used to convert the organization name to a DER encoded Directory String which is a DerValue of a ASN.1 PrintableString, T.61String or UniversalString for the organization name.
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.
|
DerValue getValue(java.lang.String valueString) throws java.io.IOException
valueString
- An AVA value string not encoded in any form.java.io.IOException
- if an error occurs during the conversion.DerValue getValue(java.lang.String valueString, byte[] tags) throws java.io.IOException
valueString
- An AVA value string not encoded in any form.java.io.IOException
- if an error occurs during the conversion.DerValue getValue(byte[] berStream) throws java.io.IOException
berStream
- A byte array of the BER encoded AVA value.java.io.IOException
java.lang.String getAsString(DerValue avaValue) throws java.io.IOException
avaValue
- A DerValue object.java.io.IOException
- if an error occurs during the conversion.