Package com.netscape.cmscore.cert
Class X500NameSubsystem
java.lang.Object
com.netscape.cmscore.cert.X500NameSubsystem
- All Implemented Interfaces:
ISubsystem
Subsystem for configuring X500Name related things.
It is used for the following.
- Add X500Name (string to oid) maps for attributes that are not supported by default.
- Specify an order for encoding Directory Strings other than the default.
- Version:
- $Revision$
- Author:
- lhsiao
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the root configuration storage of this system.getId()
Retrieves subsystem identifier.static X500NameSubsystem
void
init
(ConfigStore config) Initializes this subsystem with the given configuration store.void
Sets specific to this subsystem.void
shutdown()
Stops this system.void
startup()
Notifies this subsystem if owner is in running mode.
-
Field Details
-
logger
public static org.slf4j.Logger logger -
ID
- See Also:
-
-
Method Details
-
getId
Retrieves subsystem identifier.- Specified by:
getId
in interfaceISubsystem
- Returns:
- subsystem identifier
-
setId
Description copied from interface:ISubsystem
Sets specific to this subsystem.- Specified by:
setId
in interfaceISubsystem
- Parameters:
id
- subsystem identifier- Throws:
EBaseException
- failed to set id
-
getInstance
-
init
Initializes this subsystem with the given configuration store. All paramters are optional.- Change encoding order of Directory Strings:
X500Name.directoryStringEncodingOrder=order seperated by commas For example: Printable,BMPString,UniversalString.
Possible values are:- Printable
- IA5String
- UniversalString
- BMPString
- UTF8String
- Add X500Name attributes:
X500Name.attr.attribute-name.oid=n.n.n.n X500Name.attr.attribute-name.class=value converter class
The value converter class converts a string to a ASN.1 value. It must implement org.mozilla.jss.netscape.security.x509.AVAValueConverter interface. Converter classes provided in CMS are:org.mozilla.jss.netscape.security.x509.PrintableConverter - Converts to a Printable String value. String must have only printable characters. org.mozilla.jss.netscape.security.x509.IA5StringConverter - Converts to a IA5String value. String must have only IA5String characters. org.mozilla.jss.netscape.security.x509.DirStrConverter - Converts to a Directory (v3) String. String is expected to be in Directory String format according to rfc2253. org.mozilla.jss.netscape.security.x509.GenericValueConverter - Converts string character by character in the following order from smaller character sets to broadest character set. Printable, IA5String, BMPString, Universal String.
- Specified by:
init
in interfaceISubsystem
- Parameters:
config
- configuration store- Throws:
EBaseException
- Change encoding order of Directory Strings:
-
startup
Description copied from interface:ISubsystem
Notifies this subsystem if owner is in running mode.- Specified by:
startup
in interfaceISubsystem
- Throws:
EBaseException
- failed to start up
-
shutdown
public void shutdown()Stops this system.- Specified by:
shutdown
in interfaceISubsystem
-
getConfigStore
Description copied from interface:ISubsystem
Returns the root configuration storage of this system.- Specified by:
getConfigStore
in interfaceISubsystem
- Returns:
- configuration store of this subsystem
-