The default implementation provides the following behavior. If proxy is null, throws a {@link NullPointerException}. Otherwise, calls {@link #verify(Object) verify}with proxy. If the verify call succeeds, calls {@link #grant grant} with proxy. If the grantcall succeeds, returns the result of calling {@link #setConstraints setConstraints} with proxy.
Subclasses may wish to override this method, for example, to perform additional operations, typically calling the default implementation via super.
@param proxy the proxy to prepare
@return the prepared proxy
@throws NullPointerException if proxy is null
@throws RemoteException if a communication-related exception occurs
@throws SecurityException if a security exception occurs
@see #verify(Object) verify
@see #grant grant
@see #setConstraints setConstraints
Typical operations performed by this method include verifying trust in the proxy by calling {@link Security#verifyObjectTrust Security.verifyObjectTrust}, specifying constraints by calling {@link RemoteMethodControl#setConstraints RemoteMethodControl.setConstraints}, and granting the proxy permissions by calling {@link Security#grant Security.grant}.
@param proxy the proxy to prepare
@return the prepared proxy
@throws NullPointerException if the proxy is null
@throws RemoteException if a communication-related exception occurs
@throws SecurityException if a security exception occurs
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |