|
Knopflerfish OSGi 3.4.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
public void setUsername(java.lang.String username)
username - the usernamepublic void setPassword(java.lang.String password)
password - the password
public 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.
public 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.4.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||