codec.pkcs12
Class PKCS12OIDRegistry

java.lang.Object
  |
  +--codec.asn1.OIDRegistry
        |
        +--codec.asn1.AbstractOIDRegistry
              |
              +--codec.pkcs12.PKCS12OIDRegistry

public class PKCS12OIDRegistry
extends AbstractOIDRegistry

This class maps ASN.1 object identifiers onto ASN.1 types suitable for decoding the structure defined by the given OID.

Version:
"$Id: PKCS12OIDRegistry.java,v 1.5 2004/09/23 12:17:17 pebinger Exp $"
Author:
Michele Boivin, Volker Roth

Field Summary
static String RN
          The base name of files that map OIDs to the names of classes that represent and implement the ASN.1 structure with the respective OIDs.
 
Constructor Summary
PKCS12OIDRegistry()
          Creates an instance of this class with no parent.
PKCS12OIDRegistry(OIDRegistry parent)
          Creates an instance with the given parent.
 
Method Summary
static OIDRegistry getDefaultRegistry()
          This method returns the default PKCS#12 OID registry.
protected  ASN1Type getLocalASN1Type(ASN1ObjectIdentifier oid)
          Retrieves an ASN.1 type for the given OID or null if no such type was found.
protected  Map getOIDMap()
          Returns the mapping from OID to ASN.1 types.
protected  String getPrefix()
          Returns the prefix that is prepended to strings in the mapping returned by getOIDMap() in order to form the fully qualified class name.
static void main(String[] argv)
           
 
Methods inherited from class codec.asn1.AbstractOIDRegistry
loadOIDMap
 
Methods inherited from class codec.asn1.OIDRegistry
addOIDRegistry, equals, getASN1Type, getGlobalOIDRegistry, getLocalASN1Type, hashCode, removeOIDRegistry
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RN

public static final String RN
The base name of files that map OIDs to the names of classes that represent and implement the ASN.1 structure with the respective OIDs.
Constructor Detail

PKCS12OIDRegistry

public PKCS12OIDRegistry()
Creates an instance of this class with no parent.

PKCS12OIDRegistry

public PKCS12OIDRegistry(OIDRegistry parent)
Creates an instance with the given parent.
Parameters:
parent - the parent OID registry.
Method Detail

getOIDMap

protected Map getOIDMap()
Returns the mapping from OID to ASN.1 types. Types may be given as a string representing the postfix of the class name implementing the type, or a class object. If the mapping contains a string then this string is replaced by the corresponding class when this type is first referenced.

The map must always be the same since it might be modified as described above.

Overrides:
getOIDMap in class AbstractOIDRegistry
Returns:
The OID to class (name) mapping.

getPrefix

protected String getPrefix()
Returns the prefix that is prepended to strings in the mapping returned by getOIDMap() in order to form the fully qualified class name.
Overrides:
getPrefix in class AbstractOIDRegistry
Returns:
The prefix of class names in the mapping.

getLocalASN1Type

protected ASN1Type getLocalASN1Type(ASN1ObjectIdentifier oid)
Retrieves an ASN.1 type for the given OID or null if no such type was found.
Overrides:
getLocalASN1Type in class AbstractOIDRegistry
Following copied from class: codec.asn1.AbstractOIDRegistry
Parameters:
oid - The OID
Returns:
The ASN.1 type for the given OID

getDefaultRegistry

public static OIDRegistry getDefaultRegistry()
This method returns the default PKCS#12 OID registry. The default registry delegates to the global OID registry if a requested OID could not be found locally.
Returns:
The default PKCS#12 OID registry.

main

public static void main(String[] argv)


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.