Package com.sun.jini.landlord
Class LandlordProxyVerifier
java.lang.Object
com.sun.jini.landlord.LandlordProxyVerifier
- All Implemented Interfaces:
Serializable,TrustVerifier
This class defines a trust verifier for the proxies defined in the landlord package.
- 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
ConstructorsConstructorDescriptionLandlordProxyVerifier(Landlord landlord, Uuid landlordUuid) Returns a verifier for the proxies defined in the landlord package with the specified server reference and serverUuid. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisTrustedObject(Object obj, TrustVerifier.Context ctx) Returnstrueif the specified proxy object (that is not yet known to be trusted) is equivalent in trust, content, and function to the canonical server reference this object was constructed with; otherwise returnsfalse.
-
Constructor Details
-
LandlordProxyVerifier
Returns a verifier for the proxies defined in the landlord package with the specified server reference and serverUuid.- Parameters:
landlord- the reference to theLandlordbeing used by the leases for communication back to the server.landlordUuid- a universally unique id that has been assigned to the server granting of the lease. Ideally theUuidlandlord.getUuidwould return iflandlordimplementedReferentUuid. Used to determine when two leases can be batched together.- Throws:
UnsupportedOperationException- iflandlorddoes not implement bothRemoteMethodControlandTrustEquivalenceNullPointerException- if either argument isnull.
-
-
Method Details
-
isTrustedObject
Returnstrueif the specified proxy object (that is not yet known to be trusted) is equivalent in trust, content, and function to the canonical server reference this object was constructed with; otherwise returnsfalse.- Specified by:
isTrustedObjectin interfaceTrustVerifier- Parameters:
obj- proxy object that will be compared to this class's stored canonical proxy to determine whether or not the given proxy object is equivalent in trust, content, and function.ctx- the trust verifier context, to aid in verification of the specified object and its components- Returns:
trueif the specified object (that is not yet known to be trusted) is equivalent in trust, content, and function to the canonical inner proxy object referenced in this class; otherwise returnsfalse.- Throws:
NullPointerException- if any argument isnullRemoteException- if a communication-related exception occurs
-