net.jini.discovery
Class ConstrainableLookupLocatorTrustVerifier
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstrainableLookupLocatorTrustVerifier
public ConstrainableLookupLocatorTrustVerifier()
- Creates an instance.
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 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:
SecurityException - if a security exception occurs
NullPointerException - if any argument is null
RemoteException - if a communication-related exception occurs
Copyright © GigaSpaces.