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.


Constructor Index

 o X500NameAttrMap()
Construct a X500NameAttrMap.

Method Index

 o addNameOID(String, ObjectIdentifier, AVAValueConverter)
Adds a attribute name, ObjectIdentifier, AVAValueConverter entry to the map.
 o getAllNames()
Get an Enumeration of all attribute names in this map.
 o getAllOIDs()
Get an Enumeration of all ObjectIdentifiers in this map.
 o getDefault()
Get the global default X500NameAttrMap.
 o getName(ObjectIdentifier)
Get the attribute name (keyword) of the specified OID.
 o getOid(ObjectIdentifier)
Get the ObjectIdentifier object in the map for the specified OID.
 o getOid(String)
Get the ObjectIdentifier of the attribute name.
 o getValueConverter(ObjectIdentifier)
Get the Attribute Value Converter for the specified ObjectIdentifier.
 o getValueConverter(String)
Get the Attribute Value Converter for the specified attribute name.
 o setDefault(X500NameAttrMap)
Set the global default X500NameAttrMap.

Constructors

 o X500NameAttrMap
 public X500NameAttrMap()
Construct a X500NameAttrMap.

Methods

 o 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.
 o 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.
 o 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
 o 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.
 o getAllNames
 public Enumeration getAllNames()
Get an Enumeration of all attribute names in this map.

Returns:
An Enumeration of all attribute names.
 o getAllOIDs
 public Enumeration getAllOIDs()
Get an Enumeration of all ObjectIdentifiers in this map.

Returns:
An Enumeration of all OIDs in this map.
 o 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.
 o 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.
 o getDefault
 public static X500NameAttrMap getDefault()
Get the global default X500NameAttrMap.

Returns:
The global default X500NameAttrMap.
 o 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