How to limit the argument size or rmi methods?
Facundo DomÃnguez <[email protected]> Thu, 6 Mar 2008 09:59:54 -0300
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm programming a server application using jdk 1.5. It connects
with its clients using rmi.
The rmi methods have parameters of various types, being String and
byte[] some of them.
First, I don't want an attacker to have the oportunity to invoke
one of these methods with a big parameter,
say 1 GB, and take the bandwidth and the server memory with it.
Second, I want to constraint the size of specific arguments,
knowing that they are not reasonable if bigger than 1 MB, for
instance.
I've been searching the web, this list, and the java
documentation, but I could not find any clue of whether or not this is
possible to do.
Any suggestions?
Facundo
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS". For general help, send email to
[email protected] and include in the body of the message "help".
For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html
To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html