public class SystemAccessExporter extends Object implements net.jini.export.Exporter
ActivationSystem instance so that it
only accepts calls from the local host and optionally enforces a
GroupPolicy on calls to registerGroup and
setActivationGroupDesc.| Constructor and Description |
|---|
SystemAccessExporter()
Creates an exporter with an underlying
SunJrmpExporter that
exports using a well-known object identifier (4) on the standard
activation port (1098), and a DefaultGroupPolicy instance. |
SystemAccessExporter(net.jini.export.Exporter exporter)
Creates an exporter with the specified underlying exporter and a
DefaultGroupPolicy instance. |
SystemAccessExporter(net.jini.export.Exporter exporter,
GroupPolicy policy)
Creates an exporter with the specified underlying exporter and the
specified group policy, if any.
|
SystemAccessExporter(GroupPolicy policy)
Creates an exporter with an underlying
SunJrmpExporter that
exports using a well-known object identifier (4) on the standard
activation port (1098), and the specified group policy, if any. |
SystemAccessExporter(int port)
Creates an exporter with an underlying
SunJrmpExporter that
exports using a well-known object identifier (4) on the specified port,
and a DefaultGroupPolicy instance. |
SystemAccessExporter(int port,
GroupPolicy policy)
Creates an exporter with an underlying
SunJrmpExporter that
exports using a well-known object identifier (4) on the specified port,
and the specified group policy, if any. |
| Modifier and Type | Method and Description |
|---|---|
Remote |
export(Remote impl)
Wraps the specified remote object in an
ActivationSystem
implementation that only accepts calls from the local host and
enforces the group policy (if any) before delegating to the specified
remote object, exports the wrapper with the underlying exporter, and
returns the resulting proxy. |
boolean |
unexport(boolean force) |
public SystemAccessExporter()
SunJrmpExporter that
exports using a well-known object identifier (4) on the standard
activation port (1098), and a DefaultGroupPolicy instance.public SystemAccessExporter(GroupPolicy policy)
SunJrmpExporter that
exports using a well-known object identifier (4) on the standard
activation port (1098), and the specified group policy, if any.policy - the group policy, or nullpublic SystemAccessExporter(int port)
SunJrmpExporter that
exports using a well-known object identifier (4) on the specified port,
and a DefaultGroupPolicy instance.port - the port on which to receive calls (if zero, an anonymous
port will be chosen)public SystemAccessExporter(int port,
GroupPolicy policy)
SunJrmpExporter that
exports using a well-known object identifier (4) on the specified port,
and the specified group policy, if any.port - the port on which to receive calls (if zero, an anonymous
port will be chosen)policy - the group policy, or nullpublic SystemAccessExporter(net.jini.export.Exporter exporter)
DefaultGroupPolicy instance.exporter - the underlying exporterpublic SystemAccessExporter(net.jini.export.Exporter exporter,
GroupPolicy policy)
exporter - the underlying exporterpolicy - the group policy, or nullpublic Remote export(Remote impl) throws ExportException
ActivationSystem
implementation that only accepts calls from the local host and
enforces the group policy (if any) before delegating to the specified
remote object, exports the wrapper with the underlying exporter, and
returns the resulting proxy. The wrapper is strongly referenced by
this exporter. For all ActivationSystem and
ActivationAdmin methods, the wrapper throws an
AccessControlException if the client is not calling from
the local host. For the registerGroup and
setActivationGroupDesc methods, the policy (if any)
is checked by calling its checkGroup
method with the ActivationGroupDesc argument.export in interface net.jini.export.ExporterIllegalArgumentException - if impl does not
implement ActivationSystem or ActivationAdminNullPointerExceptionIllegalStateExceptionExportExceptionpublic boolean unexport(boolean force)
unexport in interface net.jini.export.ExporterIllegalStateExceptionCopyright © 2016–2018. All rights reserved.