local.server
Interface AuthenticationService

All Superinterfaces:
Repository
All Known Implementing Classes:
AuthenticationServiceImpl

public interface AuthenticationService
extends Repository

AuthenticationService is the interface used by a SIP server to access to an AAA repository.


Method Summary
 AuthenticationService addUser(java.lang.String user, byte[] key)
          Adds a new user at the database.
 byte[] getUserKey(java.lang.String user)
          Gets the user key.
 AuthenticationService setUserKey(java.lang.String user, byte[] key)
          Sets the user key.
 
Methods inherited from interface local.server.Repository
addUser, getUsers, hasUser, removeAllUsers, removeUser, size, sync, toString
 

Method Detail

addUser

public AuthenticationService addUser(java.lang.String user,
                                     byte[] key)
Adds a new user at the database.
Parameters:
user - the user name
key - the user key
Returns:
this object

setUserKey

public AuthenticationService setUserKey(java.lang.String user,
                                        byte[] key)
Sets the user key.
Parameters:
user - the user name
key - the user key
Returns:
this object

getUserKey

public byte[] getUserKey(java.lang.String user)
Gets the user key.
Parameters:
user - the user name
Returns:
the user key