|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dontdrinkandroot.lastfm.api.model.Auth
public class Auth
| Constructor Summary | |
|---|---|
Auth()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
generateMobileToken(java.lang.String username,
java.lang.String password)
This method can generate a token as required by getMobileSession(java.lang.String, java.lang.String). |
static AuthenticatedGetQuery<Session> |
getMobileSession(java.lang.String username,
java.lang.String authToken)
Create a web service session for a user. |
static AuthenticatedGetQuery<Session> |
getSession(java.lang.String token)
Fetch a session key for a user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Auth()
| Method Detail |
|---|
public static AuthenticatedGetQuery<Session> getMobileSession(java.lang.String username,
java.lang.String authToken)
username - The last.fm username. (Required).authToken - A 32-byte ASCII hexadecimal MD5 hash of the last.fm username and the user's
password hash. i.e. md5(username + md5(password)), where '+' represents a
concatenation. This can also be generated by generateMobileToken(java.lang.String, java.lang.String)
(Required).
public static java.lang.String generateMobileToken(java.lang.String username,
java.lang.String password)
getMobileSession(java.lang.String, java.lang.String).
username - The username of the last.fm user to authenticate.password - The password of the last.fm user to authenticate
public static AuthenticatedGetQuery<Session> getSession(java.lang.String token)
token - A 32-character ASCII hexadecimal MD5 hash returned by step 1
of the authentication process (following the granting of permissions to
the application by the user) (Required).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||