public interface RMIAuthenticator
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(java.net.InetSocketAddress remoteAddress,
java.lang.String authId,
java.lang.String passphrase)
Authenticate a user that established the connection from the given address.
|
boolean |
authorize(java.lang.String authId,
java.lang.Object object,
java.lang.reflect.Method method)
Authorize a user to invoke a specific method on a specific object.
|
boolean authenticate(java.net.InetSocketAddress remoteAddress, java.lang.String authId, java.lang.String passphrase)
RMIRegistry
to accept the
incoming connectionremoteAddress
- the address of the remote machineauthId
- the authentication identifier of the userpassphrase
- the passphrase to use for authenticationboolean authorize(java.lang.String authId, java.lang.Object object, java.lang.reflect.Method method)
authId
- the user authentication identifier, the same that ha been used
to authenticate the user in the
authenticate(InetSocketAddress, String, String)
methodobject
- the object to which the user requires the accessmethod
- the method that the user wants invoke