rmisecd starts the secure activation system daemon so that objects can be registered and activated in a JavaTM virtual machine.
rmisecd [option ...]
The rmisecd tool starts the secure activation system daemon. Before activatable objects can be either registered with the activation system or activated in a Java virtual machine, the activation system daemon must be started.The access control policy for each of the secure objects exported by the daemon is equivalent to the policy provided by
java.rmi.server.BasicCallController
used with thejava.rmi.activation.ActivationPermission
class. A remote call to a secure object throwsjava.security.AccessControlException
if the export descriptor for the secure object requires client authentication for the remote method and the client subject has not been granted anActivationPermission
with a name that equals the name of the remote method being invoked.
- -log dir
- Specifies the name of the directory the activation system daemon uses to write its database and associated information. The log directory defaults to creating a directory named
log
, in the directory in which thermisecd
command is executed.
- -port port
- Specifies the port on which to export a non-secure read-only registry, and the port to use for the bootstrap activator for the
ActivationSystem
and theActivator
. If this option is not specified, port 1098 is used. The activation system daemon binds the secureActivationSystem
, with the name "java.rmi.activation.ActivationSystem", in the registry. ASecurityException
is thrown for any remote call that attempts to modify the registry.
- -export fileOrURL
- Specifies a file name or URL for an export descriptor configuration file, parsed using
java.rmi.server.SecureExportFile
. Configuration files specified with multiple options are parsed in order, and entries in later files replace entries in earlier files with the same names.The secure
ActivationSystem
is exported using the export descriptor named "ActivationSystem". The secureActivator
is exported using the export descriptor named "Activator". The secureActivationMonitor
is exported using the export descriptor named "ActivationMonitor".These export files are also used by all default activation groups (those that use the default activation group implementation), when exporting their secure
ActivationInstantiator
. Each such group exports its secureActivationInstantiator
using the export descriptor named "ActivationInstantiator".
- -login config
- Specifies the name of a JAAS login
Configuration
entry. The name is used to construct a JAASLoginContext
with noCallbackHandler
, and the subject produced by thatLoginContext
is used as the server subject when the objects are exported and as the client subject when certain remote calls are made. If this option is not specified, anull
subject is used instead.All three secure objects (
ActivationSystem
,Activator
andActivationMonitor
) are exported with this subject, and all remote calls toActivationInstantiator.newInstance
in activation groups will be executed on behalf of this subject. In addition, default activation groups (those that use the default activation group implementation) export their secureActivationInstantiator
with this subject, and make all of their calls to the secureActivationMonitor
on behalf of this subject.
- -Coption
- Specifies an option that is passed as a command line argument to each child process (activation group) of
rmisecd
when that process is created. For example, you could pass a property to each Java virtual machine spawned by the activation system daemon:This ability to pass command-line arguments to child processes can be useful for debugging. For example, the following command:rmisecd -C-Dsome.property=value
will enable server-call logging in all child Java virtual machines.rmisecd -C-Djava.rmi.server.logCalls=true
- -Joption
- Used in conjunction with any java tool option, it passes the option following the -J (no spaces between the -J and the option) on to the java interpreter.
- -stop
- Stops the
rmisecd
stored in the registry that is exported on the port specified by the -port option, or port 1098 if no -port is specified.
java.rmi.server.SecureExportFile
,java.rmi.server.BasicCallController
,java.rmi.activation.ActivationPermission
,javax.security.auth.login.LoginContext
,javax.security.auth.login.Configuration
, andjava
tool options