Azure.Configurable Interface
public interface Configurable extends AzureConfigurable
The interface allowing configurations to be made on the client.
Method Summary
Modifier and Type | Method and Description |
---|---|
Azure. |
authenticate(AzureTokenCredentials credentials)
Authenticates API access based on the provided credentials. |
Azure. |
authenticate(File credentialsFile)
Authenticates API access using a properties file containing the required credentials. |
Inherited Members
AzureConfigurable<T>.withCallbackExecutor(Executor executor)
AzureConfigurable<T>.withConnectionTimeout(long timeout, TimeUnit unit)
AzureConfigurable<T>.withInterceptor(Interceptor interceptor)
AzureConfigurable<T>.withLogLevel(LogLevel level)
AzureConfigurable<T>.withMaxIdleConnections(int maxIdleConnections)
AzureConfigurable<T>.withProxy(Proxy proxy)
AzureConfigurable<T>.withProxyAuthenticator(Authenticator proxyAuthenticator)
AzureConfigurable<T>.withReadTimeout(long timeout, TimeUnit unit)
AzureConfigurable<T>.withUserAgent(String userAgent)
Method Details
authenticate
public Authenticated authenticate(AzureTokenCredentials credentials)
Authenticates API access based on the provided credentials.
Parameters:
credentials
- The credentials to authenticate API access with
Returns:
the authenticated Azure client
authenticate
public Authenticated authenticate(File credentialsFile)
Authenticates API access using a properties file containing the required credentials.
Parameters:
credentialsFile
- the file containing the credentials in the standard Java properties file format following the same schema as authenticate(File credentialsFile).
Returns:
Authenticated Azure client
Throws:
IOException
- exceptions thrown from file access
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java