public class AuthenticationFacade extends Object
| Constructor and Description |
|---|
AuthenticationFacade(Configuration configuration,
org.apache.http.client.HttpClient httpClient,
com.google.gson.Gson gson) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHeader(String userId) |
void |
invalidateToken(String userId) |
public AuthenticationFacade(Configuration configuration, org.apache.http.client.HttpClient httpClient, com.google.gson.Gson gson)
configuration - The Media Platform httpClient confighttpClient - The global http httpClientgson - The JSON serializer@Nullable public String getHeader(String userId) throws IOException, UnauthorizedException
userId - Your user id, that the token is generated forIOException - If the request failedUnauthorizedExceptionpublic void invalidateToken(String userId)
userId - The user id of which the token was not accepted and needs to be removed from the cacheCopyright © 2016 wix.com. All rights reserved.