@ Override public BatchCredentials getCredentials ( ) { final TokenCredentials tokenCredentials = new TokenCredentials ( null , System . getenv ( AZ_BATCH_AUTH_TOKEN_ENV ) ) ; return new BatchCredentials ( ) { @ Override public String baseUrl ( ) { return azureBatchAccountUri ; } @ Override public void applyCredentialsFilter ( final OkHttpClient . Builder builder ) { tokenCredentials . applyCredentialsFilter ( builder ) ; } } ; }
Returns credentials for Azure Batch account .