|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.umass.lastfm.Session
public class Session
Contains Session data relevant for making API calls which require authentication.
A Session instance is passed to all methods requiring previous authentication.
Authenticator| Method Summary | |
|---|---|
static Session |
createSession(String apiKey,
String secret,
String sessionKey)
Restores a Session instance with the given session key. |
static Session |
createSession(String apiKey,
String secret,
String sessionKey,
String username,
boolean subscriber)
Restores a Session instance with the given session key. |
String |
getApiKey()
|
String |
getKey()
|
String |
getSecret()
|
String |
getUsername()
|
boolean |
isSubscriber()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Session createSession(String apiKey,
String secret,
String sessionKey)
apiKey - An api keysecret - A secretsessionKey - The previously obtained session key
public static Session createSession(String apiKey,
String secret,
String sessionKey,
String username,
boolean subscriber)
apiKey - An api keysecret - A secretsessionKey - The previously obtained session keyusername - A Last.fm usernamesubscriber - Subscriber status
public String getSecret()
public String getApiKey()
public String getKey()
public boolean isSubscriber()
public String getUsername()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||