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
TrustEquivalencepublic net.jini.core.constraint.RemoteMethodControl setConstraints(net.jini.core.constraint.MethodConstraints constraints)
setConstraints in interface net.jini.core.constraint.RemoteMethodControlconstraints - the client constraints, or nullgetConstraints()public net.jini.core.constraint.MethodConstraints getConstraints()
getConstraints in interface net.jini.core.constraint.RemoteMethodControlnullsetConstraints(net.jini.core.constraint.MethodConstraints)public boolean checkTrustEquivalence(Object obj)
checkTrustEquivalence in interface net.jini.security.proxytrust.TrustEquivalenceCopyright © 2016–2018. All rights reserved.