|
Knopflerfish OSGi 3.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PasswdSession
Interface for for a user name/password authentication session. First, a user name and a password should be supplied, then it is possible to authenticate the user or to get an Authorization object.
| Method Summary | |
|---|---|
User |
authenticate()
Attempts to authenticate. |
ContextualAuthorization |
getAuthorization()
Attempts to authenticate and authorize the user. |
void |
setPassword(java.lang.String password)
Set the user's password. |
void |
setUsername(java.lang.String username)
Set the user's user name. |
| Method Detail |
|---|
void setUsername(java.lang.String username)
username - the usernamevoid setPassword(java.lang.String password)
password - the password
User authenticate()
throws java.lang.IllegalStateException
getAuthorization().
java.lang.IllegalStateException - if called before a user name and a password have been
supplied or if the user admin service is no longer
available.
ContextualAuthorization getAuthorization()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if called before a user name and a password have been
supplied or if the user admin service is no longer
available.
|
Knopflerfish OSGi 3.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||