com.sun.jini.norm
Class ProxyVerifier

java.lang.Object
  extended by com.sun.jini.norm.ProxyVerifier
All Implemented Interfaces:
Serializable, TrustVerifier

final class ProxyVerifier
extends Object
implements Serializable, TrustVerifier

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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

serverProxy

private final RemoteMethodControl serverProxy
The Norm server proxy.


serverUuid

private final Uuid serverUuid
The unique ID for the Norm server.

Constructor Detail

ProxyVerifier

ProxyVerifier(NormServer serverProxy,
              Uuid serverUuid)
Returns a verifier for the smart proxies of a Norm server with the specified proxy and unique ID.

Parameters:
serverProxy - the Norm server proxy
serverUuid - the unique ID for the Norm server
Throws:
UnsupportedOperationException - if serverProxy does not implement both RemoteMethodControl and TrustEquivalence
Method Detail

isTrustedObject

public boolean isTrustedObject(Object obj,
                               TrustVerifier.Context ctx)
                        throws RemoteException
Description copied from interface: TrustVerifier
Returns true if the specified object is known to be trusted to correctly implement its contract; returns false otherwise.

Specified by:
isTrustedObject in interface TrustVerifier
Parameters:
obj - the object in which to verify trust
ctx - the trust verifier context, to aid in verification of the specified object and its components
Returns:
true if the specified object is known to be trusted to correctly implement its contract; false otherwise
Throws:
NullPointerException - if any argument is null
RemoteException - if a communication-related exception occurs

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Require server proxy to implement TrustEquivalence.

Throws:
IOException
ClassNotFoundException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.