public class OIDMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXT_INHIBIT_ANY_POLICY_NAME |
static java.lang.String |
EXT_KEY_USAGE_NAME |
static java.lang.String |
EXTENSIONS_CLASSES |
static java.lang.String |
EXTENSIONS_HOME
Location for where the OID/Classes maps are stored on
the local system.
|
static java.lang.String |
EXTENSIONS_OIDS
File names for where OIDs and Classes are registered
for V3 extensions.
|
Constructor and Description |
---|
OIDMap() |
Modifier and Type | Method and Description |
---|---|
static void |
addAttribute(java.lang.String className,
java.lang.String oid,
java.lang.String name)
Add a name to lookup table.
|
static void |
addClass(java.lang.Class<? extends Extension> clazz)
Add an extension to the OIDMap.
|
static java.lang.Class<?> |
getClass(ObjectIdentifier oid)
Return the java class object associated with the object identifier..
|
static java.lang.Class<?> |
getClass(java.lang.String name)
Return the java class object associated with the user friendly name.
|
static java.lang.String |
getName(ObjectIdentifier oid)
Return user friendly name associated with the OID.
|
static ObjectIdentifier |
getOID(java.lang.String name)
Return Object identifier for user friendly name.
|
public static final java.lang.String EXTENSIONS_HOME
public static final java.lang.String EXTENSIONS_OIDS
public static final java.lang.String EXTENSIONS_CLASSES
public static final java.lang.String EXT_KEY_USAGE_NAME
public static final java.lang.String EXT_INHIBIT_ANY_POLICY_NAME
public static void addClass(java.lang.Class<? extends Extension> clazz)
public static void addAttribute(java.lang.String className, java.lang.String oid, java.lang.String name) throws java.security.cert.CertificateException
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.java.security.cert.CertificateException
- on errors.public static java.lang.String getName(ObjectIdentifier oid)
oid
- the name of the object identifier to be returned.public static ObjectIdentifier getOID(java.lang.String name)
name
- the user friendly name.public static java.lang.Class<?> getClass(java.lang.String name) throws java.security.cert.CertificateException
name
- the user friendly name.java.security.cert.CertificateException
- if class cannot be instantiated.public static java.lang.Class<?> getClass(ObjectIdentifier oid) throws java.security.cert.CertificateException
oid
- the name of the object identifier to be returned.java.security.cert.CertificateException
- if class cannot be instatiated.