|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserAuthRepository
Describe interface UserAuthRepository here. Created: Sun Nov 5 21:15:46 2006
| Field Summary | |
|---|---|
static java.lang.String |
DATA_KEY
|
static java.lang.String |
MACHANISM_KEY
|
static java.lang.String |
PROTOCOL_KEY
|
static java.lang.String |
PROTOCOL_VAL_NONSASL
|
static java.lang.String |
PROTOCOL_VAL_SASL
|
static java.lang.String |
REALM_KEY
|
static java.lang.String |
RESULT_KEY
|
static java.lang.String |
SERVER_NAME_KEY
|
static java.lang.String |
USER_ID_KEY
|
| Method Summary | |
|---|---|
void |
addUser(java.lang.String user,
java.lang.String password)
Describe addUser method here. |
boolean |
digestAuth(java.lang.String user,
java.lang.String digest,
java.lang.String id,
java.lang.String alg)
digestAuth method performs non-sasl, digest authentication
as described in non-sasl authentication
XEP-0078
For now it is empty and always returns false as I don't
have description for database with passwords. |
java.lang.String |
getResourceUri()
getResourceUri method returns database connection string. |
void |
initRepository(java.lang.String resource_uri,
java.util.Map<java.lang.String,java.lang.String> params)
initRepository method is doing initialization for database
connection. |
void |
logout(java.lang.String user)
Describe logout method here. |
boolean |
otherAuth(java.util.Map<java.lang.String,java.lang.Object> authProps)
Describe otherAuth method here. |
boolean |
plainAuth(java.lang.String user,
java.lang.String password)
plainAuth method performs non-sasl, plain authentication
as described in non-sasl authentication
XEP-0078. |
void |
queryAuth(java.util.Map<java.lang.String,java.lang.Object> authProps)
queryAuth returns mechanisms available for authentication. |
void |
removeUser(java.lang.String user)
Describe removeUser method here. |
void |
updatePassword(java.lang.String user,
java.lang.String password)
Describe updatePassword method here. |
| Field Detail |
|---|
static final java.lang.String PROTOCOL_KEY
static final java.lang.String PROTOCOL_VAL_SASL
static final java.lang.String PROTOCOL_VAL_NONSASL
static final java.lang.String RESULT_KEY
static final java.lang.String MACHANISM_KEY
static final java.lang.String REALM_KEY
static final java.lang.String SERVER_NAME_KEY
static final java.lang.String DATA_KEY
static final java.lang.String USER_ID_KEY
| Method Detail |
|---|
void queryAuth(java.util.Map<java.lang.String,java.lang.Object> authProps)
queryAuth returns mechanisms available for authentication.
authProps - a Map value with parameters for authentication.
void initRepository(java.lang.String resource_uri,
java.util.Map<java.lang.String,java.lang.String> params)
throws DBInitException
initRepository method is doing initialization for database
connection. It may also do lazy initialization with database.
Connection to database might be established during the first authentication
request.
conn_str - a String value of database connection string.
The string must also contain database user name and password if required
for connection.
DBInitException - if an error occurs during access database. It won't
happen however as in this method we do simple variable assigment.java.lang.String getResourceUri()
getResourceUri method returns database connection string.
String value of database connection string.
boolean plainAuth(java.lang.String user,
java.lang.String password)
throws UserNotFoundException,
TigaseDBException,
AuthorizationException
plainAuth method performs non-sasl, plain authentication
as described in non-sasl authentication
XEP-0078.
user - a String value of user namepassword - a String value of plain user password.
boolean value true on successful
authentication, false on authentication failure.
UserNotFoundException - if an given user name is not found in
the authentication repository.
TigaseDBException - if an error occurs during during accessing
database;
AuthorizationException - if an error occurs during authentication
process.
boolean digestAuth(java.lang.String user,
java.lang.String digest,
java.lang.String id,
java.lang.String alg)
throws UserNotFoundException,
TigaseDBException,
AuthorizationException
digestAuth method performs non-sasl, digest authentication
as described in non-sasl authentication
XEP-0078
For now it is empty and always returns false as I don't
have description for database with passwords.
user - a String value of user namedigest - a String value password digest sumid - a String value session ID used for digest sum
calculation.alg - a String value of algorithm ID used for digest sum
calculation.
boolean value true on successful
authentication, false on authentication failure.
UserNotFoundException - if an given user name is not found in
the authentication repository.
TigaseDBException - if an error occurs during during accessing
database;
AuthorizationException - if an error occurs during authentication
process.
boolean otherAuth(java.util.Map<java.lang.String,java.lang.Object> authProps)
throws UserNotFoundException,
TigaseDBException,
AuthorizationException
otherAuth method here.
props - a Map value
boolean value
UserNotFoundException - if an error occurs
TigaseDBException - if an error occurs
AuthorizationException - if an error occurs
void addUser(java.lang.String user,
java.lang.String password)
throws UserExistsException,
TigaseDBException
addUser method here.
user - a String valuepassword - a String value
UserExistsException - if an error occurs
TigaseDBException - if an error occurs
void updatePassword(java.lang.String user,
java.lang.String password)
throws UserNotFoundException,
TigaseDBException
updatePassword method here.
user - a String valuepassword - a String value
TigaseDBException - if an error occurs
UserNotFoundException
void removeUser(java.lang.String user)
throws UserNotFoundException,
TigaseDBException
removeUser method here.
user - a String value
UserNotFoundException - if an error occurs
TigaseDBException - if an error occurs
void logout(java.lang.String user)
throws UserNotFoundException,
TigaseDBException
logout method here.
user - a String value
UserNotFoundException - if an error occurs
TigaseDBException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||