public class ProxyTrustILFactory extends BasicILFactory
ProxyTrust interface. The remote object
being exported must be an instance of ServerProxyTrust, and the
ProxyTrust.getProxyVerifier remote
method of the proxy is implemented in the invocation dispatcher by
invoking the ServerProxyTrust.getProxyVerifier local method of the remote object.ProxyTrustExporterInvocationLayerFactory.Instances| Constructor and Description |
|---|
ProxyTrustILFactory(MethodConstraints serverConstraints,
Class permissionClass)
Creates a factory with the specified server constraints, permission
class, and a
null class loader. |
ProxyTrustILFactory(MethodConstraints serverConstraints,
Class permissionClass,
ClassLoader loader)
Creates a factory with the specified server constraints, permission
class, and class loader.
|
| Modifier and Type | Method and Description |
|---|---|
protected Class[] |
getRemoteInterfaces(Remote impl)
Returns a new array containing the remote interfaces that should be
implemented by the proxy.
|
createInvocationDispatcher, createInvocationHandler, equals, getExtraProxyInterfaces, getPermissionClass, getServerConstraints, hashCode, toStringcreateInstances, getClassLoader, getInvocationDispatcherMethods, getProxyInterfacespublic ProxyTrustILFactory(MethodConstraints serverConstraints, Class permissionClass)
null class loader. The server constraints,
if not null, are used to enforce minimum constraints
for remote calls. The permission class, if not null, is
used to perform server-side access control on incoming remote calls.serverConstraints - the server constraints, or nullpermissionClass - the permission class, or nullIllegalArgumentException - if the permission class is abstract, is
not a subclass of Permission, or does not have
a public constructor that has either one String parameter
or one Method parameter and has no declared
exceptionspublic ProxyTrustILFactory(MethodConstraints serverConstraints, Class permissionClass, ClassLoader loader)
null, are used to enforce minimum constraints for
remote calls. The permission class, if not null, is
used to perform server-side access control on incoming remote calls.
The specified loader is passed to the superclass constructor and
used by the createInstances method.serverConstraints - the server constraints, or nullpermissionClass - the permission class, or nullloader - the class loader, or nullIllegalArgumentException - if the permission class is abstract, is
not a subclass of Permission, or does not have
a public constructor that has either one String parameter
or one Method parameter and has no declared
exceptionsprotected Class[] getRemoteInterfaces(Remote impl) throws ExportException
ProxyTrustILFactory implements this method to return
an array containing the interfaces obtained by invoking super.getRemoteInterfaces
passing impl followed by the ProxyTrust
interface.
getRemoteInterfaces in class AbstractILFactoryimpl - the remote objectimplNullPointerException - if impl is nullExportException - if the remote object is not an instance of
ServerProxyTrust or implements any illegal remote interfacesCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.