GigaSpaces XAP 9.7.2 API

net.jini.discovery
Class ConstrainableLookupLocatorTrustVerifier

java.lang.Object
  extended by net.jini.discovery.ConstrainableLookupLocatorTrustVerifier
All Implemented Interfaces:
TrustVerifier

public class ConstrainableLookupLocatorTrustVerifier
extends Object
implements TrustVerifier

Trust verifier for ConstrainableLookupLocator instances. 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
ConstrainableLookupLocatorTrustVerifier()
          Creates an instance.
 
Method Summary
 boolean isTrustedObject(Object obj, TrustVerifier.Context ctx)
          Returns true if the specified object is a trusted ConstrainableLookupLocator instance; returns false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstrainableLookupLocatorTrustVerifier

public ConstrainableLookupLocatorTrustVerifier()
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 ConstrainableLookupLocator instance; returns false otherwise. For the purposes of this verifier, all instances of ConstrainableLookupLocator are considered trusted.

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

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.