Package com.sun.jini.proxy
Class BasicProxyTrustVerifier
java.lang.Object
com.sun.jini.proxy.BasicProxyTrustVerifier
- All Implemented Interfaces:
Serializable,TrustVerifier
A basic trust verifier for proxies. This trust verifier is used to verify that object passed to
its
isTrustedObject method is equivalent in trust, content, and function
to the known trusted object that the trust verifier is constructed with. This trust verifier is
typically returned by an implementation of the ServerProxyTrust.getProxyVerifier method.- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.jini.security.TrustVerifier
TrustVerifier.Context -
Constructor Summary
ConstructorsConstructorDescriptionBasicProxyTrustVerifier(Object proxy) Creates a trust verifier containing the specified trusted proxy. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisTrustedObject(Object obj, TrustVerifier.Context ctx) Verifies trust in a proxy.
-
Constructor Details
-
BasicProxyTrustVerifier
Creates a trust verifier containing the specified trusted proxy.- Parameters:
proxy- the trusted proxy- Throws:
IllegalArgumentException- if the specified proxy is not an instance ofRemoteMethodControlorTrustEquivalence
-
-
Method Details
-
isTrustedObject
Verifies trust in a proxy. Returnstrueif and only if the specified object is an instance ofRemoteMethodControland invoking thecheckTrustEquivalencemethod on a proxy that is this verifier's proxy with the same method constraints of the specified object, passing the specified object returnstrue.- 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
-