public final class BasicProxyTrustVerifier extends Object implements TrustVerifier, Serializable
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.TrustVerifier.Context
Constructor and Description |
---|
BasicProxyTrustVerifier(Object proxy)
Creates a trust verifier containing the specified trusted proxy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTrustedObject(Object obj,
TrustVerifier.Context ctx)
Verifies trust in a proxy.
|
public BasicProxyTrustVerifier(Object proxy)
proxy
- the trusted proxyIllegalArgumentException
- if the specified proxy is
not an instance of RemoteMethodControl
or
TrustEquivalence
public boolean isTrustedObject(Object obj, TrustVerifier.Context ctx)
true
if and only if
the specified object is an instance of RemoteMethodControl
and invoking the checkTrustEquivalence
method on a proxy that is this verifier's
proxy with the same method constraints of the specified object,
passing the specified object returns true
.isTrustedObject
in interface TrustVerifier
obj
- 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
otherwiseCopyright © GigaSpaces.