jp.bitmeister.asn1.type
Class ASN1Modules

java.lang.Object
  extended by jp.bitmeister.asn1.type.ASN1Modules

public class ASN1Modules
extends java.lang.Object

Manager of all ASN.1 modules.

This class manages all of the ASN.1 modules which are sub-class of ASN1Module and provides instantiate method that instantiates an ASN.1 data from an ASN.1 tag or identifier.

Author:
WATANABE, Jun.
See Also:
ASN1Module

Method Summary
static ASN1Type instanciate(java.lang.String typeIdentifier)
          Instantiates a built-in ASN.1 data specified by the type identifier.
static ASN1Type instantiate(ASN1TagClass tagClass, int tagNumber)
          Instantiates an ASN.1 data specified by the ASN.1 tag and the tag class.
static ASN1Type instantiate(java.lang.String moduleIdentifier, java.lang.String typeIdentifier)
          Instantiates an ASN.1 data specified by the identifier of module and type.
static void using(ASN1Module module)
          Registers the ASN.1 module to the manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instantiate

public static ASN1Type instantiate(ASN1TagClass tagClass,
                                   int tagNumber)
Instantiates an ASN.1 data specified by the ASN.1 tag and the tag class.

Parameters:
tagClass - The tag class.
tagNumber - The tag number.
Returns:
An instance of ASN.1 data.

instanciate

public static ASN1Type instanciate(java.lang.String typeIdentifier)
Instantiates a built-in ASN.1 data specified by the type identifier.

Parameters:
typeIdentifier - The identifier of a type.
Returns:
An instance of built-in ASN.1 data.

instantiate

public static ASN1Type instantiate(java.lang.String moduleIdentifier,
                                   java.lang.String typeIdentifier)
Instantiates an ASN.1 data specified by the identifier of module and type.

Parameters:
moduleIdentifier - The identifier of a module.
typeIdentifier - The identifier of a type.
Returns:
An instance of ASN.1 data.

using

public static void using(ASN1Module module)
Registers the ASN.1 module to the manager.

Parameters:
module - The ASN.1 module to be registered.