com.sun.jini.start
Class ProxyVerifier

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

final class ProxyVerifier
extends Object
implements TrustVerifier, Serializable

Defines a trust verifier for the smart proxies of a SharedGroup 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 static long serialVersionUID
           
private  RemoteMethodControl serverProxy
          The SharedGroup server proxy.
protected static String START_PROXY
          Logger and configuration component name for SharedGroup
 
Constructor Summary
ProxyVerifier(SharedGroupBackEnd serverProxy)
          Returns a verifier for the smart proxies of the specified SharedGroup 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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

START_PROXY

protected static final String START_PROXY
Logger and configuration component name for SharedGroup

See Also:
Constant Field Values

logger

private static final Logger logger
Logger for logging information about this instance


serverProxy

private final RemoteMethodControl serverProxy
The SharedGroup server proxy.

Constructor Detail

ProxyVerifier

ProxyVerifier(SharedGroupBackEnd serverProxy)
Returns a verifier for the smart proxies of the specified SharedGroup server proxy.

Parameters:
serverProxy - the SharedGroup server proxy
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


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