All Packages Class Hierarchy This Package Previous Next Index
Class netscape.security.x509.X500NameAttrMap
netscape.security.x509.X500NameAttrMap
- public class X500NameAttrMap
Maps an attribute name in an X500 AVA to its OID and a
converter for the attribute type. The converter converts from a string to
its DER encoded attribute value. * For example, "CN" maps to its OID of
2.5.4.3 and the Directory String Converter. The Directory String
Converter converts from a string to a DerValue with tag Printable, T.61 or
UniversalString.
-
X500NameAttrMap()
-
Construct a X500NameAttrMap.
-
addNameOID(String, ObjectIdentifier, AVAValueConverter)
-
Adds a attribute name, ObjectIdentifier, AVAValueConverter entry
to the map.
-
getAllNames()
- Get an Enumeration of all attribute names in this map.
-
getAllOIDs()
- Get an Enumeration of all ObjectIdentifiers in this map.
-
getDefault()
-
Get the global default X500NameAttrMap.
-
getName(ObjectIdentifier)
- Get the attribute name (keyword) of the specified OID.
-
getOid(ObjectIdentifier)
-
Get the ObjectIdentifier object in the map for the specified OID.
-
getOid(String)
- Get the ObjectIdentifier of the attribute name.
-
getValueConverter(ObjectIdentifier)
-
Get the Attribute Value Converter for the specified ObjectIdentifier.
-
getValueConverter(String)
-
Get the Attribute Value Converter for the specified attribute name.
-
setDefault(X500NameAttrMap)
-
Set the global default X500NameAttrMap.
X500NameAttrMap
public X500NameAttrMap()
- Construct a X500NameAttrMap.
getName
public String getName(ObjectIdentifier oid)
- Get the attribute name (keyword) of the specified OID.
- Parameters:
- oid - An ObjectIdentifier
- Returns:
- An attribute name (keyword string) for the OID.
getOid
public ObjectIdentifier getOid(String name)
- Get the ObjectIdentifier of the attribute name.
- Parameters:
- name - An attribute name (string of ascii characters)
- Returns:
- An ObjectIdentifier for the attribute.
getValueConverter
public AVAValueConverter getValueConverter(String name)
- Get the Attribute Value Converter for the specified attribute name.
- Parameters:
- name - An attribute name
- Returns:
- An attribute value converter for the attribute name
getValueConverter
public AVAValueConverter getValueConverter(ObjectIdentifier oid)
- Get the Attribute Value Converter for the specified ObjectIdentifier.
- Parameters:
- oid - An ObjectIdentifier
- Returns:
- An AVAValueConverter for the OID.
getAllNames
public Enumeration getAllNames()
- Get an Enumeration of all attribute names in this map.
- Returns:
- An Enumeration of all attribute names.
getAllOIDs
public Enumeration getAllOIDs()
- Get an Enumeration of all ObjectIdentifiers in this map.
- Returns:
- An Enumeration of all OIDs in this map.
getOid
public ObjectIdentifier getOid(ObjectIdentifier oid)
- Get the ObjectIdentifier object in the map for the specified OID.
- Parameters:
- oid - An ObjectIdentifier.
- Returns:
- The ObjectIdentifier object in this map for the OID.
addNameOID
public void addNameOID(String name,
ObjectIdentifier oid,
AVAValueConverter valueConverter)
- Adds a attribute name, ObjectIdentifier, AVAValueConverter entry
to the map.
- Parameters:
- 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.
getDefault
public static X500NameAttrMap getDefault()
- Get the global default X500NameAttrMap.
- Returns:
- The global default X500NameAttrMap.
setDefault
public static void setDefault(X500NameAttrMap newDefault)
- Set the global default X500NameAttrMap.
- Parameters:
- newDefault - The new default X500NameAttrMap.
All Packages Class Hierarchy This Package Previous Next Index