Package com.zendesk.sdk.network
Interface AccessProvider
-
public interface AccessProviderA 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 voidgetAndStoreAuthTokenViaAnonymous(AnonymousIdentity identity, <any> callback)Calls anAccessServiceand loads a authentication token for aAnonymousIdentity.voidgetAndStoreAuthTokenViaJwt(JwtIdentity identity, <any> callback)Calls anAccessServiceand loads a authentication token for aJwtIdentity.
-
-
-
Method Detail
-
getAndStoreAuthTokenViaJwt
void getAndStoreAuthTokenViaJwt(JwtIdentity identity, <any> callback)
Calls anAccessServiceand loads a authentication token for aJwtIdentity. If a token was successfully loaded it will be stored intoIdentityStorage.- Parameters:
identity- AJwtIdentitycallback- Callback that will deliver anAccessTokenorErrorResponse
-
getAndStoreAuthTokenViaAnonymous
void getAndStoreAuthTokenViaAnonymous(AnonymousIdentity identity, <any> callback)
Calls anAccessServiceand loads a authentication token for aAnonymousIdentity. If a token was successfully loaded it will be stored intoIdentityStorage.- Parameters:
identity- AAnonymousIdentitycallback- Callback that will deliver anAccessTokenorErrorResponse
-
-