jp.bitmeister.asn1.type
Class ASN1ModuleManager

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

public class ASN1ModuleManager
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 methods which instantiate an ASN.1 data from an ASN.1 tag or identifier.

Author:
WATANABE, Jun.
See Also:
ASN1Module

Method Summary
static java.lang.String identifier(java.lang.Class<? extends ASN1Module> module)
          Returns identifier of the module.
static ASN1Type instantiate(java.lang.Class<? extends ASN1Module> module, ASN1TagClass tagClass, int tagNumber)
          Instantiates an ASN.1 data specified by the ASN.1 tag and the tag class.
static ASN1Type instantiate(java.lang.Class<? extends ASN1Module> module, java.lang.String typeIdentifier)
          Instantiates an ASN.1 data specified by the type identifier.
 
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(java.lang.Class<? extends ASN1Module> module,
                                   ASN1TagClass tagClass,
                                   int tagNumber)
Instantiates an ASN.1 data specified by the ASN.1 tag and the tag class.

Parameters:
module - The Class object of an ASN1Module.
tagClass - The tag class.
tagNumber - The tag number.
Returns:
An instance of ASN.1 data.

instantiate

public static ASN1Type instantiate(java.lang.Class<? extends ASN1Module> module,
                                   java.lang.String typeIdentifier)
Instantiates an ASN.1 data specified by the type identifier.

Parameters:
module - The Class object of an ASN1Module.
typeIdentifier - The identifier of a type.
Returns:
An instance of ASN.1 data.

identifier

public static java.lang.String identifier(java.lang.Class<? extends ASN1Module> module)
Returns identifier of the module.

Parameters:
module - The Class object of the ASN1Module.
Returns:
Identifier of this module.