saker.build Documentation TaskDoc JavaDoc Packages
Forbids calling an annotated method via RMI.

If a method is annotated with this class then calling it on a remote proxy object will cause an RMICallForbiddenException to be thrown.

If the method is also annotated with RMIDefaultOnFailure then the default implementation will be called.

If the method is also annotated with RMIExceptionRethrow then the specified exception type will be thrown instead.

When designing security sensitive applications, using this annotation on the server side interface definition doesn't protect against remote calls issued by the client. I.e. The annotated method may still be called by a malicious client.