TokenCredentials Class

Definition

TokenCredentials are a means of authenticating requests to Azure Storage via OAuth user tokens. This is the preferred way of authenticating with Azure Storage.

public class TokenCredentials implements ICredentials
Inheritance
java.lang.Object
RequestPolicyFactory
TokenCredentials

Constructors

TokenCredentials(String token)

Creates a token credential for use with role-based access control (RBAC) access to Azure Storage resources.

Methods

create(RequestPolicy next, RequestPolicyOptions options)
getToken()

Retrieve the value of the token used by this factory.

setToken(String token)

Update the token to a new value.

Applies to