final class ProxyVerifier extends Object implements TrustVerifier, Serializable
TrustVerifier.Context| Modifier and Type | Field and Description |
|---|---|
private static Logger |
logger
Logger for logging information about this instance
|
private Uuid |
proxyID
The unique identifier associated with the backend server referenced
by the
serverProxy, used for comparison with the IDs
extracted from the smart proxies being verified. |
private static long |
serialVersionUID |
private RemoteMethodControl |
serverProxy
The Mahalo server proxy.
|
| Constructor and Description |
|---|
ProxyVerifier(TxnManager serverProxy,
Uuid proxyID)
Returns a verifier for the smart proxies of the specified Mahalo server
proxy.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTrustedObject(Object obj,
TrustVerifier.Context ctx)
Returns
true if the specified object is known to be
trusted to correctly implement its contract; returns false
otherwise. |
private static final long serialVersionUID
private static final Logger logger
private final RemoteMethodControl serverProxy
private final Uuid proxyID
serverProxy, used for comparison with the IDs
extracted from the smart proxies being verified.ProxyVerifier(TxnManager serverProxy, Uuid proxyID)
serverProxy - the Mahalo server proxyUnsupportedOperationException - if serverProxy does
not implement both RemoteMethodControl and TrustEquivalencepublic boolean isTrustedObject(Object obj, TrustVerifier.Context ctx) throws RemoteException
TrustVerifiertrue if the specified object is known to be
trusted to correctly implement its contract; returns false
otherwise.isTrustedObject in interface TrustVerifierobj - the object in which to verify trustctx - the trust verifier context, to aid in verification of
the specified object and its componentstrue if the specified object is known to be
trusted to correctly implement its contract; false
otherwiseNullPointerException - if any argument is nullRemoteException - if a communication-related exception occursCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.