getAttributeType(java.lang.String name)
Returns the OID to which the given attribute type name is mapped, for the first OIDManager encountered in the chain that maps the attribute type name.

java.lang.Class<?>

getMapping(ASN1ObjectID oid, java.lang.String key)
Returns the value to which the specified key is mapped for the specified OID, for the first OIDManager encountered in the chain that maps the OID and key.

writeProperties(java.util.Properties props, java.io.OutputStream out, java.lang.String header)
Writes the given java.util.Properties to the given output stream, but does not insert a comment containing the current date/time (as the Properties.save method does).

getAttributeName

Returns the String to which the given attribute type is mapped, for the first OIDManager encountered in the chain that maps the attribute type.

Parameters:

oid - the mapped attribute type.

Returns:

the mapped name, or null if no mapping is defined.

load

public void load(java.io.InputStream is)
throws java.io.IOException

Loads OID and Properties mappings for this OIDManager from the specified input stream. OIDManagers further up the chain are unaffected.

Each OID occupies one line of the input stream. The OID must be preceded on the line by an ASCII & (surrounded and/or separated by zero or more whitespace characters).

Each line is terminated by a line terminator (\n or \r or \r\n). Lines from the input stream are processed until end of file is reached on the input stream.

A line that contains only whitespace or whose first non- whitespace character is an ASCII # or ! is ignored (thus, # or ! indicate comment lines). An ampersand included in a comment line must be represented by its escaped unicode value /u0026.

Each OID line is followed by its Properties definition, using the syntax set forth in the javadoc for java.util.Properties.load(java.io.InputStream).

As an example, the following lines specify the Properties to which the AlgID.rsaEncryption OID is mapped: