net.jini.jeri
The net.jini.jeri
package and its subpackages provide APIs for Jini extensible remote
invocation (Jini ERI) and several Jini ERI transport layer providers.
As recommended by RFC 1123, the transport endpoints now attempt connections to all the IP addresses that a given host name may resolve to, instead of just the first one.
BasicJeriTrustVerifier
has been changed to trust fewer dynamic proxies. In particular, in addition to
implementing
RemoteMethodControl
,
the dynamic proxy must now implement one or more well-formed remote interfaces
(ones that extend Remote
and for which all methods declare
RemoteException
or a superclass in their throws clause), and
must not implement any other interfaces except
TrustEquivalence
.
BasicJeriTrustVerifier
protected
methods
BasicJeriTrustVerifier
has five new protected
methods to allow for more
convenient implementation of certain behaviors through subclassing:
hasTrustedProxyClass
can be overridden by subclasses to control which dynamic proxy classes for
Jini ERI proxies are considered locally trusted.
hasTrustedClassLoader
can be overridden by subclasses to control the set of class loaders
for which the class of a Jini ERI proxy, when defined by one of those
loaders, is considered locally trusted.
isTrustedProxyInterface
can be overridden by subclasses to control which dynamic proxy interfaces for
Jini ERI proxies are considered locally trusted.
isTrustedInvocationHandler
can be overridden by subclasses to support verification of invocation
handlers that have a locally trusted class other than BasicInvocationHandler
(such as a subclass of BasicInvocationHandler
).
checkInvocationHandlerContent
can be invoked by subclasses that override
isTrustedInvocationHandler
to perform the verification
steps that the default implementation of
isTrustedInvocationHandler
would perform, except that the
class of the invocation handler is not required to be
BasicInvocationHandler
exactly, so that trusted
subclasses can be supported.