GigaSpaces XAP 9.7.2 API

com.sun.jini.discovery
Class DiscoveryConstraintTrustVerifier

java.lang.Object
  extended by com.sun.jini.discovery.DiscoveryConstraintTrustVerifier
All Implemented Interfaces:
TrustVerifier

public class DiscoveryConstraintTrustVerifier
extends Object
implements TrustVerifier

Trust verifier for instances of the constraint classes defined in the com.sun.jini.discovery package. This class is intended to be specified in a resource to configure the operation of Security.verifyObjectTrust.

Since:
2.0
Author:
Sun Microsystems, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.jini.security.TrustVerifier
TrustVerifier.Context
 
Constructor Summary
DiscoveryConstraintTrustVerifier()
          Creates an instance.
 
Method Summary
 boolean isTrustedObject(Object obj, TrustVerifier.Context ctx)
          Returns true if the specified object is known to be trusted to correctly implement its contract; returns false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryConstraintTrustVerifier

public DiscoveryConstraintTrustVerifier()
Creates an instance.

Method Detail

isTrustedObject

public boolean isTrustedObject(Object obj,
                               TrustVerifier.Context ctx)
                        throws RemoteException
Returns true if the specified object is known to be trusted to correctly implement its contract; returns false otherwise. Returns true if the object is an instance of any of the following classes, and 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:
NullPointerException - if any argument is null
RemoteException - if a communication-related exception occurs

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.