All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.security.x509.OIDMap

netscape.security.x509.OIDMap

public class OIDMap
This class defines the mapping from OID & name to classes and vice versa. Used by CertificateExtensions & PKCS10 to get the java classes associated with a particular OID/name.


Variable Index

 o EXTENSIONS_CLASSES
 o EXTENSIONS_HOME
Location for where the OID/Classes maps are stored on the local system.
 o EXTENSIONS_OIDS
File names for where OIDs and Classes are registered for V3 extensions.

Constructor Index

 o OIDMap()

Method Index

 o addAttribute(String, String, String)
Add a name to lookup table.
 o getClass(ObjectIdentifier)
Return the java class object associated with the object identifier..
 o getClass(String)
Return the java class object associated with the user friendly name.
 o getName(ObjectIdentifier)
Return user friendly name associated with the OID.
 o getOID(String)
Return Object identifier for user friendly name.

Variables

 o EXTENSIONS_HOME
 public static final String EXTENSIONS_HOME
Location for where the OID/Classes maps are stored on the local system.

 o EXTENSIONS_OIDS
 public static final String EXTENSIONS_OIDS
File names for where OIDs and Classes are registered for V3 extensions.

 o EXTENSIONS_CLASSES
 public static final String EXTENSIONS_CLASSES

Constructors

 o OIDMap
 public OIDMap()

Methods

 o addAttribute
 public static void addAttribute(String className,
                                 String oid,
                                 String name) throws CertificateException
Add a name to lookup table.

Parameters:
className - the name of the fully qualified class implementing the asn object.
oid - the string representation of the object identifier for the class.
name - the name of the attribute.
Throws: CertificateException
on errors.
 o getName
 public static String getName(ObjectIdentifier oid)
Return user friendly name associated with the OID.

Parameters:
oid - the name of the object identifier to be returned.
Returns:
the user friendly name or null if no name is registered for this oid.
 o getOID
 public static ObjectIdentifier getOID(String name)
Return Object identifier for user friendly name.

Parameters:
name - the user friendly name.
Returns:
the Object Identifier or null if no oid is registered for this name.
 o getClass
 public static Class getClass(String name) throws CertificateException
Return the java class object associated with the user friendly name.

Parameters:
name - the user friendly name.
Throws: CertificateException
if class cannot be instantiated.
 o getClass
 public static Class getClass(ObjectIdentifier oid) throws CertificateException
Return the java class object associated with the object identifier..

Parameters:
oid - the name of the object identifier to be returned.
Throws: CertificateException
if class cannot be instatiated.

All Packages  Class Hierarchy  This Package  Previous  Next  Index