final class ProxyVerifier extends Object implements Serializable, TrustVerifier
TrustVerifier
TrustVerifier.Context
Modifier and Type | Field and Description |
---|---|
private RemoteMethodControl |
innerProxy
The canonical instance of the inner proxy to the service.
|
private Uuid |
proxyID
The unique identifier associated with the backend server referenced
by the
innerProxy , used for comparison with the IDs
extracted from the smart proxies being verified. |
private static long |
serialVersionUID |
Constructor and Description |
---|
ProxyVerifier(Fiddler innerProxy,
Uuid proxyID)
Constructs an instance of
TrustVerifier that can be
used to determine whether or not a given proxy is equivalent in
trust, content, and function to the service's innerProxy
referenced in the class constructed here. |
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 inner proxy object referenced in this
class; otherwise returns false . |
private static final long serialVersionUID
private final RemoteMethodControl innerProxy
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 proxyID
innerProxy
, used for comparison with the IDs
extracted from the smart proxies being verified.ProxyVerifier(Fiddler innerProxy, Uuid proxyID)
TrustVerifier
that can be
used to determine whether or not a given proxy is equivalent in
trust, content, and function to the service's innerProxy
referenced in the class constructed here.innerProxy
- canonical instance of the inner proxy to the service.
The isTrustedObject
method will
determine whether or not proxies input to that
method are equivalent in trust, content, and function
to this object.proxyID
- instance of Uuid
containing the unique
identifier associated with the backend server
referenced by the innerProxy
paramater.UnsupportedOperationException
- if innerProxy
does
not implement both RemoteMethodControl
and TrustEquivalence
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 inner proxy object referenced in this
class; otherwise returns false
.isTrustedObject
in interface TrustVerifier
obj
- 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 null
RemoteException
- if a communication-related exception occursCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.