public class Authenticator extends Object
Session
Modifier | Constructor and Description |
---|---|
private |
Authenticator() |
Modifier and Type | Method and Description |
---|---|
(package private) static String |
createSignature(String method,
Map<String,String> params,
String secret) |
static Session |
getMobileSession(String username,
String password,
String apiKey,
String secret)
Create a web service session for a user.
|
static Session |
getSession(String token,
String apiKey,
String secret)
Fetch a session key for a user.
|
static String |
getToken(String apiKey)
Fetch an unathorized request token for an API account.
|
private Authenticator()
public static Session getMobileSession(String username, String password, String apiKey, String secret)
username
- last.fm usernamepassword
- last.fm password in cleartext or 32-char md5 stringapiKey
- The API keysecret
- Your last.fm API secretSession
public static String getToken(String apiKey)
apiKey
- A last.fm API key.public static Session getSession(String token, String apiKey, String secret)
token
- A token returned by getToken(String)
apiKey
- A last.fm API keysecret
- Your last.fm API secretSession
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses