public class ASN1CharStrConvMap
extends java.lang.Object
A global default ASN1CharStrConvMap is created when the class is initialized. The global default map is extensible.
Constructor and Description |
---|
ASN1CharStrConvMap()
Constructs a ASN1CharStrConvMap.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntry(byte tag,
java.nio.charset.Charset charset)
Add a tag-charset entry in the map.
|
java.nio.charset.CharsetDecoder |
getDecoder(byte tag)
Get a decoder for the given DER tag.
|
static ASN1CharStrConvMap |
getDefault()
Get the global ASN1CharStrConvMap.
|
java.nio.charset.CharsetEncoder |
getEncoder(byte tag)
Get an encoder for the specified DER tag.
|
java.util.Iterator<java.lang.Byte> |
getTags()
Get an iterator of all tags in the map.
|
static void |
setDefault(ASN1CharStrConvMap newDefault)
Set the global default ASN1CharStrConvMap.
|
public java.nio.charset.CharsetEncoder getEncoder(byte tag)
tag
- A DER tag of a ASN.1 character string type,
for example DerValue.tag_PrintableString.public java.nio.charset.CharsetDecoder getDecoder(byte tag)
tag
- A DER tag of a ASN.1 character string type,
for example DerValue.tag_PrintableString.public void addEntry(byte tag, java.nio.charset.Charset charset)
tag
- A DER tag of a ASN.1 character string type,
ex. DerValue.tag_IA5Stringcharset
- A charset for the tag.public java.util.Iterator<java.lang.Byte> getTags()
public static ASN1CharStrConvMap getDefault()
public static void setDefault(ASN1CharStrConvMap newDefault)
newDefault
- The new default ASN1CharStrConvMap.