final class ProxyVerifier extends Object implements Serializable, TrustVerifier
TrustVerifier.Context
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private RemoteMethodControl |
serverProxy
The Norm server proxy.
|
private Uuid |
serverUuid
The unique ID for the Norm server.
|
Constructor and Description |
---|
ProxyVerifier(NormServer serverProxy,
Uuid serverUuid)
Returns a verifier for the smart proxies of a Norm server with the
specified proxy and unique ID.
|
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 void |
readObject(ObjectInputStream in)
Require server proxy to implement TrustEquivalence.
|
private static final long serialVersionUID
private final RemoteMethodControl serverProxy
private final Uuid serverUuid
ProxyVerifier(NormServer serverProxy, Uuid serverUuid)
serverProxy
- the Norm server proxyserverUuid
- the unique ID for the Norm serverUnsupportedOperationException
- if serverProxy
does
not implement both RemoteMethodControl
and TrustEquivalence
public boolean isTrustedObject(Object obj, TrustVerifier.Context ctx) throws RemoteException
TrustVerifier
true
if the specified object is known to be
trusted to correctly implement its contract; returns false
otherwise.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
otherwiseNullPointerException
- if any argument is null
RemoteException
- if a communication-related exception occursprivate void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.