com.distinct.rpc
Class AuthDesServerDB

java.lang.Object
  |
  +--com.distinct.rpc.AuthDesServerDB

public class AuthDesServerDB
extends java.lang.Object

Implements server side checks and a temporary database for client nickname authenticators. Used in Secure RPC.

See Also:
JRPC.AuthDes

Constructor Summary
AuthDesServerDB(java.lang.String servernetname, java.lang.String passwd, PublicKeyDB db)
          Creates an authenticator database.
 
Method Summary
 AuthDes checkAuth(Auth cred, Auth verf)
          Checks whether a credential fits to a verifier.
 void flush()
          Flushes the nickname authenticator cache and forces all clients to send a new full authenticator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthDesServerDB

public AuthDesServerDB(java.lang.String servernetname,
                       java.lang.String passwd,
                       PublicKeyDB db)
                throws RPCError
Creates an authenticator database.

Parameters:
servernetname - The name of the servers's authority.
passwd - The password that authenticates the servers's authority.
db - The key store.
Throws:
RPCError - Thrown if creation fails.
Method Detail

checkAuth

public AuthDes checkAuth(Auth cred,
                         Auth verf)
                  throws RPCAuthError
Checks whether a credential fits to a verifier.

Parameters:
cred - The credential to be checked.
verf - The verifier to be checked.
Returns:
The verified authenticator. It can be used to determine the client's netname and if necessary also the current session key.
Throws:
JRPC.RPCAuthError - Thrown if the check fails.
RPCAuthError

flush

public void flush()
Flushes the nickname authenticator cache and forces all clients to send a new full authenticator.