|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.epfl.tequila.client.service.TequilaService
public class TequilaService
Service for interacting with the Tequila server.
Method Summary | |
---|---|
java.lang.String |
createRequest(ClientConfig config,
java.lang.String urlacces)
Creates a request on the Tequila server and returns the corresponding session key. |
static TequilaService |
instance()
Returns the instance of the TequilaService (singleton). |
TequilaPrincipal |
validateKey(ClientConfig config,
java.lang.String sessionKey)
Validates the given sesion key with the Tequila server and returns the corresponding TequilaPrincipal, holding the known authenticated user informations. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TequilaService instance()
public java.lang.String createRequest(ClientConfig config, java.lang.String urlacces) throws java.io.IOException
config
- the ClientConfig.urlacces
- the url where the user is redirected after successful authentification.
java.io.IOException
- if the connection with the Tequila server cannot be made.public TequilaPrincipal validateKey(ClientConfig config, java.lang.String sessionKey) throws java.io.IOException
config
- the ClientConfig.sessionKey
- the Tequila session key you get with createRequest.
java.io.IOException
- if the connection with the Tequila server cannot be made.
java.lang.SecurityException
- if the key is invalid.createRequest(ch.epfl.tequila.client.model.ClientConfig, String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |