com.sun.jini.phoenix
Class ConstrainableAID.Verifier

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.jini.security.TrustVerifier
TrustVerifier.Context
 
Field Summary
private  RemoteMethodControl activator
          The expected activator.
private static long serialVersionUID
           
 
Constructor Summary
ConstrainableAID.Verifier(Activator activator)
          Creates a verifier for the specified activator.
 
Method Summary
 boolean isTrustedObject(Object obj, TrustVerifier.Context ctx)
          Verifies trust in a proxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

activator

private final RemoteMethodControl activator
The expected activator.

Constructor Detail

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
Method Detail

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 trust
ctx - 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.