|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--codec.asn1.OIDRegistry
|
+--codec.asn1.AbstractOIDRegistry
This class maps ASN.1 object identifiers onto ASN.1 types suitable for decoding the structure defined by the given OID.
| Constructor Summary | |
AbstractOIDRegistry()
Creates an OID registry. |
|
AbstractOIDRegistry(OIDRegistry parent)
Creates an OID registry with the given parent. |
|
| Method Summary | |
protected ASN1Type |
getLocalASN1Type(ASN1ObjectIdentifier oid)
Retrieves an ASN.1 type for the given OID or null if no
such type was found. |
protected abstract Map |
getOIDMap()
Returns the mapping from OID to ASN.1 types. |
protected abstract 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. |
protected static void |
loadOIDMap(Map map,
String path)
Loads the OID mappings of this registry into the given Map. |
| Methods inherited from class codec.asn1.OIDRegistry |
addOIDRegistry, equals, getASN1Type, getDefaultRegistry, getGlobalOIDRegistry, getLocalASN1Type, hashCode, removeOIDRegistry |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractOIDRegistry()
public AbstractOIDRegistry(OIDRegistry parent)
parent - The parent OID registry.| Method Detail |
protected static void loadOIDMap(Map map,
String path)
CLASSPATH. OID definition files are simple properties
files which map an OID to the name of the class which implements the
structure identifier by that OID.
The name of such files is oidn.map
where n is a running count starting from 0. All files with
consecutive numbering are loaded.
map - The map to load to.path - The path relativ to the class path from which the mappings
are loaded.protected abstract String getPrefix()
getOIDMap() in order to form the fully qualified
class name.protected abstract Map getOIDMap()
The map must always be the same since it might be modified as described above.
protected ASN1Type getLocalASN1Type(ASN1ObjectIdentifier oid)
null if no
such type was found.getLocalASN1Type in class OIDRegistryoid - The OID
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||