final class ProxyVerifier extends Object implements Serializable, TrustVerifier
LandlordProxyVerifier to verify Leases.TrustVerifierTrustVerifier.Context| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
private RemoteMethodControl |
server
The canonical instance of the server reference.
|
private Uuid |
uuid
The top level
Uuid that has been assigned to
the Outrigger server this verifier is for. |
| Constructor and Description |
|---|
ProxyVerifier(OutriggerServer server,
Uuid uuid)
Returns a verifier for the smart proxies of an Outrigger server with
the specified server reference.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTrustedObject(Object obj,
TrustVerifier.Context ctx)
Returns
true if 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 returns false. |
private void |
readObject(ObjectInputStream in)
Verifies that the server reference implements
TrustEquivalence. |
private static final long serialVersionUID
private final RemoteMethodControl server
isTrusted method
as the known trusted object used to determine whether or not a
given proxy is equivalent in trust, content, and function.private final Uuid uuid
Uuid that has been assigned to
the Outrigger server this verifier is for.ProxyVerifier(OutriggerServer server, Uuid uuid)
server - the reference to the OutriggerServer.uuid - the Uuid assigned to the Outrigger
server server is a reference to.UnsupportedOperationException - if server does
not implement both RemoteMethodControl and TrustEquivalenceNullPointerException - if either argument is
null.public boolean isTrustedObject(Object obj, TrustVerifier.Context ctx) throws RemoteException
true if 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 returns false.isTrustedObject in interface TrustVerifierobj - proxy object that will be compared to this class' 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 componentstrue if 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 returns false.NullPointerException - if any argument is nullRemoteException - if a communication-related exception occursprivate void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
TrustEquivalence.IOExceptionClassNotFoundExceptionCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.