Package com.sun.jini.discovery
Class DiscoveryConstraintTrustVerifier
java.lang.Object
com.sun.jini.discovery.DiscoveryConstraintTrustVerifier
- All Implemented Interfaces:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisTrustedObject(Object obj, TrustVerifier.Context ctx) Returnstrueif the specified object is known to be trusted to correctly implement its contract; returnsfalseotherwise.
-
Constructor Details
-
DiscoveryConstraintTrustVerifier
public DiscoveryConstraintTrustVerifier()Creates an instance.
-
-
Method Details
-
isTrustedObject
Returnstrueif the specified object is known to be trusted to correctly implement its contract; returnsfalseotherwise. Returnstrueif the object is an instance of any of the following classes, and returnsfalseotherwise:- 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:
NullPointerException- if any argument isnullRemoteException- if a communication-related exception occurs
-