com.sun.jini.phoenix
Class ConstrainableAID.Verifier
java.lang.Object
com.sun.jini.phoenix.ConstrainableAID.Verifier
- All Implemented Interfaces:
- Serializable, TrustVerifier
- Enclosing class:
- ConstrainableAID
static final class ConstrainableAID.Verifier
- extends Object
- implements TrustVerifier, Serializable
A ProxyTrust
trust verifier for
ConstrainableAID
instances.
- Since:
- 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
activator
private final RemoteMethodControl activator
- The expected activator.
ConstrainableAID.Verifier
ConstrainableAID.Verifier(Activator activator)
- Creates a verifier for the specified activator.
- Parameters:
activator
- the activator
- Throws:
IllegalArgumentException
- if the specified activator is
not an instance of RemoteMethodControl
or
TrustEquivalence
isTrustedObject
public boolean isTrustedObject(Object obj,
TrustVerifier.Context ctx)
throws RemoteException
- Verifies trust in a proxy. Returns
true
if the
proxy passed as an argument is an instance of
ConstrainableAID
and that proxy's internal
activator instance is trust equivalent to the activator of this
verifier; returns false
otherwise.
- Specified by:
isTrustedObject
in interface TrustVerifier
- Parameters:
obj
- the object in which to verify trustctx
- the trust verifier context, to aid in verification of
the specified object and its components
- Returns:
true
if the specified object is known to be
trusted to correctly implement its contract; false
otherwise
- Throws:
RemoteException
- if a communication-related exception occurs
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.