|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.mercury.ProxyVerifier
final class ProxyVerifier
Defines a trust verifier for the smart proxies of a Mercury server.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.jini.security.TrustVerifier |
---|
TrustVerifier.Context |
Field Summary | |
---|---|
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 String |
proxyVerifierSourceClass
|
private static long |
serialVersionUID
|
private RemoteMethodControl |
serverProxy
The Mercury server proxy. |
Constructor Summary | |
---|---|
ProxyVerifier(MailboxBackEnd serverProxy,
Uuid proxyID)
Returns a verifier for the smart proxies of the specified Mercury server proxy. |
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. |
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 static final Logger logger
private static final String proxyVerifierSourceClass
private final RemoteMethodControl serverProxy
private final Uuid proxyID
serverProxy
, used for comparison with the IDs
extracted from the smart proxies being verified.
Constructor Detail |
---|
ProxyVerifier(MailboxBackEnd serverProxy, Uuid proxyID)
serverProxy
- the Mercury server proxy
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 occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |