|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.norm.ProxyVerifier
final class ProxyVerifier
Defines a trust verifier for the smart proxies of a Norm server.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.jini.security.TrustVerifier |
---|
TrustVerifier.Context |
Field Summary | |
---|---|
private static long |
serialVersionUID
|
private RemoteMethodControl |
serverProxy
The Norm server proxy. |
private Uuid |
serverUuid
The unique ID for the Norm server. |
Constructor Summary | |
---|---|
ProxyVerifier(NormServer serverProxy,
Uuid serverUuid)
Returns a verifier for the smart proxies of a Norm server with the specified proxy and unique ID. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final RemoteMethodControl serverProxy
private final Uuid serverUuid
Constructor Detail |
---|
ProxyVerifier(NormServer serverProxy, Uuid serverUuid)
serverProxy
- the Norm server proxyserverUuid
- the unique ID for the Norm server
UnsupportedOperationException
- if serverProxy
does
not implement both RemoteMethodControl
and TrustEquivalence
Method Detail |
---|
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 components
true
if the specified object is known to be
trusted to correctly implement its contract; false
otherwise
NullPointerException
- if any argument is null
RemoteException
- if a communication-related exception occursprivate void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |