BasicAuthenticationCredential Class

Definition

Basic Auth credentials for use with a REST Service Client.

public class BasicAuthenticationCredential implements TokenCredential
Inheritance
java.lang.Object
BasicAuthenticationCredential
Implements

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructors

BasicAuthenticationCredential(String username, String password)

Creates a basic authentication credential.

Methods

getToken(TokenRequestContext request)

Asynchronously get a token for a given resource/audience. This method is called automatically by Azure SDK client libraries. You may call this method directly, but you must also handle token caching and token refreshing.

Applies to