Package net.jini.discovery
Class ConstrainableLookupLocatorTrustVerifier
java.lang.Object
net.jini.discovery.ConstrainableLookupLocatorTrustVerifier
- All Implemented Interfaces:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisTrustedObject(Object obj, TrustVerifier.Context ctx) Returnstrueif the specified object is a trustedConstrainableLookupLocatorinstance; returnsfalseotherwise.
-
Constructor Details
-
ConstrainableLookupLocatorTrustVerifier
public ConstrainableLookupLocatorTrustVerifier()Creates an instance.
-
-
Method Details
-
isTrustedObject
Returnstrueif the specified object is a trustedConstrainableLookupLocatorinstance; returnsfalseotherwise. For the purposes of this verifier, all instances ofConstrainableLookupLocatorare considered trusted.- Specified by:
isTrustedObjectin interfaceTrustVerifier- 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:
trueif the specified object is known to be trusted to correctly implement its contract;falseotherwise- Throws:
SecurityException- if a security exception occursNullPointerException- if any argument isnullRemoteException- if a communication-related exception occurs
-