public interface BSAccountMan
BSAccount
Modifier and Type | Method and Description |
---|---|
BSAccount |
getAccount(java.lang.String username,
java.lang.String password)
Get a user account, given his username and password.
|
long |
getAppJumper(BSAccount account)
Given a logged in account, return a key that can be used by another app to retrieve this logged in account.
|
java.lang.String |
getAppName() |
BSAccountUser |
getNewUser()
Create a new anonymous BSAccountUSer
|
BSAccountUser |
getUser(BSAccount account) |
BSAccountUserWebSession |
getUserWebSession(javax.servlet.http.HttpServletRequest request) |
boolean |
isUserWebSession(javax.servlet.http.HttpServletRequest request) |
void |
setAppName(java.lang.String appName) |
BSAccountUserWebSession getUserWebSession(javax.servlet.http.HttpServletRequest request)
boolean isUserWebSession(javax.servlet.http.HttpServletRequest request)
BSAccount getAccount(java.lang.String username, java.lang.String password)
username
- His registered BuckoSoft usernamepassword
- The cleartext password that the user typed in. NB: BSAccount passwords are encrypted in the database.BSAccountUser getUser(BSAccount account)
BSAccountUser getNewUser()
java.lang.String getAppName()
void setAppName(java.lang.String appName)
long getAppJumper(BSAccount account)
account
- The BSAccount that wants to jump apps