@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);
      }
    };
  }
@ 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.
@return an implementation of {@link BatchCredentials} which is based on the token provided by Azure Batch.