All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class distinct.rpc.AuthDesServerDB

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

public class AuthDesServerDB
extends Object
Implements server side checks and a temporary database for client nickname authenticators. Used in Secure RPC.

See Also:
AuthDes

Constructor Index

 o AuthDesServerDB(String, String, PublicKeyDB)
Creates an authenticator database.

Method Index

 o checkAuth(Auth, Auth)
Checks whether a credential fits to a verifier.
 o flush()
Flushes the nickname authenticator cache and forces all clients to send a new full authenticator.

Constructors

 o AuthDesServerDB
 public AuthDesServerDB(String servernetname,
                        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.

Methods

 o checkAuth
 public synchronized 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.
 o flush
 public void flush()
Flushes the nickname authenticator cache and forces all clients to send a new full authenticator.


All Packages  Class Hierarchy  This Package  Previous  Next  Index