net.jini.jeri
Class BasicJeriTrustVerifier

java.lang.Object
  extended bynet.jini.jeri.BasicJeriTrustVerifier
All Implemented Interfaces:
TrustVerifier

public class BasicJeriTrustVerifier
extends Object
implements TrustVerifier

Trust verifier for dynamic proxies and object endpoints used in Jini(TM) extensible remote invocation (Jini ERI). This class is intended to be specified in a resource to configure the operation of Security.verifyObjectTrust.

Since:
2.0

Nested Class Summary
 
Nested classes inherited from class net.jini.security.TrustVerifier
TrustVerifier.Context
 
Constructor Summary
BasicJeriTrustVerifier()
          Creates an instance.
 
Method Summary
 boolean isTrustedObject(Object obj, TrustVerifier.Context ctx)
          Returns true if the specified object is a trusted Jini ERI dynamic proxy or a trusted Jini ERI object endpoint; returns false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicJeriTrustVerifier

public BasicJeriTrustVerifier()
Creates an instance.

Method Detail

isTrustedObject

public boolean isTrustedObject(Object obj,
                               TrustVerifier.Context ctx)
                        throws RemoteException
Returns true if the specified object is a trusted Jini ERI dynamic proxy or a trusted Jini ERI object endpoint; returns false otherwise.

For the purposes of this verifier, the specified object is a trusted Jini ERI dynamic proxy if all of the following are true:

For the purposes of this verifier, the specified object is a trusted Jini ERI object endpoint if the object is an instance of BasicObjectEndpoint and its transport endpoint is trusted; that is, calling the specified context's isTrustedObject method with the transport endpoint returns true.

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:
NullPointerException - if any argument is null
RemoteException - if a communication-related exception occurs


Copyright © 2003 Sun Microsystems, Inc. All rights reserved