public class X500NameAttrMap
extends java.lang.Object
Constructor and Description |
---|
X500NameAttrMap()
Construct a X500NameAttrMap.
|
Modifier and Type | Method and Description |
---|---|
void |
addNameOID(java.lang.String name,
ObjectIdentifier oid,
AVAValueConverter valueConverter)
Adds a attribute name, ObjectIdentifier, AVAValueConverter entry
to the map.
|
java.util.Enumeration<java.lang.String> |
getAllNames()
Get an Enumeration of all attribute names in this map.
|
java.util.Enumeration<ObjectIdentifier> |
getAllOIDs()
Get an Enumeration of all ObjectIdentifiers in this map.
|
static X500NameAttrMap |
getDefault()
Get the global default X500NameAttrMap.
|
static X500NameAttrMap |
getDirDefault()
Get the global default X500NamAttrMap using the DirStrConverter.
|
java.lang.String |
getName(ObjectIdentifier oid)
Get the attribute name (keyword) of the specified OID.
|
ObjectIdentifier |
getOid(ObjectIdentifier oid)
Get the ObjectIdentifier object in the map for the specified OID.
|
ObjectIdentifier |
getOid(java.lang.String name)
Get the ObjectIdentifier of the attribute name.
|
AVAValueConverter |
getValueConverter(ObjectIdentifier oid)
Get the Attribute Value Converter for the specified ObjectIdentifier.
|
AVAValueConverter |
getValueConverter(java.lang.String name)
Get the Attribute Value Converter for the specified attribute name.
|
static void |
setDefault(X500NameAttrMap newDefault)
Set the global default X500NameAttrMap.
|
public java.lang.String getName(ObjectIdentifier oid)
oid
- An ObjectIdentifierpublic ObjectIdentifier getOid(java.lang.String name)
name
- An attribute name (string of ascii characters)public AVAValueConverter getValueConverter(java.lang.String name)
name
- An attribute namepublic AVAValueConverter getValueConverter(ObjectIdentifier oid)
oid
- An ObjectIdentifierpublic java.util.Enumeration<java.lang.String> getAllNames()
public java.util.Enumeration<ObjectIdentifier> getAllOIDs()
public ObjectIdentifier getOid(ObjectIdentifier oid)
oid
- An ObjectIdentifier.public void addNameOID(java.lang.String name, ObjectIdentifier oid, AVAValueConverter valueConverter)
name
- An attribute name (string of ascii chars)oid
- The ObjectIdentifier for the attribute.valueConverter
- An AVAValueConverter object for converting
an value for this attribute from a string to
a DerValue and vice versa.public static X500NameAttrMap getDefault()
public static X500NameAttrMap getDirDefault()
public static void setDefault(X500NameAttrMap newDefault)
newDefault
- The new default X500NameAttrMap.