public final class ConstrainableAID extends AID implements net.jini.core.constraint.RemoteMethodControl, net.jini.security.proxytrust.TrustEquivalence
AID
that implements the RemoteMethodControl
interface by delegating to the contained activator.
This class exists as a convenience for activation system daemon
implementations supporting RemoteMethodControl
on proxies,
to avoid requiring all such implementations to make code available for
dynamic download to clients.
Modifier and Type | Class and Description |
---|---|
static class |
ConstrainableAID.Verifier
A
ProxyTrust trust verifier for
ConstrainableAID instances. |
Constructor and Description |
---|
ConstrainableAID(Activator activator,
UID uid)
Creates an activation identifier containing the specified
remote object activator, a new unique identifier, and
null client constraints. |
Modifier and Type | Method and Description |
---|---|
boolean |
checkTrustEquivalence(Object obj)
Returns true if the object is an instance of this class with the same
UID and a trust equivalent activator.
|
net.jini.core.constraint.MethodConstraints |
getConstraints()
Returns the client constraints.
|
net.jini.core.constraint.RemoteMethodControl |
setConstraints(net.jini.core.constraint.MethodConstraints constraints)
Returns a new copy of this activation identifier containing the same
unique identifier and a copy of the activator with the new specified
constraints.
|
public ConstrainableAID(Activator activator, UID uid)
null
client constraints.activator
- the activatoruid
- the unique identifierIllegalArgumentException
- if the specified activator is not
an instance of RemoteMethodControl
or
TrustEquivalence
public net.jini.core.constraint.RemoteMethodControl setConstraints(net.jini.core.constraint.MethodConstraints constraints)
setConstraints
in interface net.jini.core.constraint.RemoteMethodControl
constraints
- the client constraints, or null
getConstraints()
public net.jini.core.constraint.MethodConstraints getConstraints()
getConstraints
in interface net.jini.core.constraint.RemoteMethodControl
null
setConstraints(net.jini.core.constraint.MethodConstraints)
public boolean checkTrustEquivalence(Object obj)
checkTrustEquivalence
in interface net.jini.security.proxytrust.TrustEquivalence
Copyright © 2016–2018. All rights reserved.