public class

OIDMap

extends Object
java.lang.Object
   ↳ sun.security.x509.OIDMap

Class Overview

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.

Summary

Public Methods
static void addAttribute(String name, String oid, Class clazz)
Add a name to lookup table.
static Class getClass(ObjectIdentifier oid)
Return the java class object associated with the object identifier.
static Class getClass(String name)
Return the java class object associated with the user friendly name.
static String getName(ObjectIdentifier oid)
Return user friendly name associated with the OID.
static ObjectIdentifier getOID(String name)
Return Object identifier for user friendly name.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void addAttribute (String name, String oid, Class clazz)

Add a name to lookup table.

Parameters
name the name of the attr
oid the string representation of the object identifier for the class.
clazz the Class object associated with this attribute
Throws
CertificateException on errors.

public static Class getClass (ObjectIdentifier oid)

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.

public static Class getClass (String name)

Return the java class object associated with the user friendly name.

Parameters
name the user friendly name.
Throws
CertificateException if class cannot be instantiated.

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.

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.