Package com.zendesk.sdk.network
Interface AccessProvider
-
public interface AccessProvider
A Provider which is used to download and store access tokens.This provider shouldn't be exposed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
getAndStoreAuthTokenViaAnonymous(AnonymousIdentity identity, <any> callback)
Calls anAccessService
and loads a authentication token for aAnonymousIdentity
.void
getAndStoreAuthTokenViaJwt(JwtIdentity identity, <any> callback)
Calls anAccessService
and loads a authentication token for aJwtIdentity
.
-
-
-
Method Detail
-
getAndStoreAuthTokenViaJwt
void getAndStoreAuthTokenViaJwt(JwtIdentity identity, <any> callback)
Calls anAccessService
and loads a authentication token for aJwtIdentity
. If a token was successfully loaded it will be stored intoIdentityStorage
.- Parameters:
identity
- AJwtIdentity
callback
- Callback that will deliver anAccessToken
orErrorResponse
-
getAndStoreAuthTokenViaAnonymous
void getAndStoreAuthTokenViaAnonymous(AnonymousIdentity identity, <any> callback)
Calls anAccessService
and loads a authentication token for aAnonymousIdentity
. If a token was successfully loaded it will be stored intoIdentityStorage
.- Parameters:
identity
- AAnonymousIdentity
callback
- Callback that will deliver anAccessToken
orErrorResponse
-
-