Class AzureBlobFetcherConfig


public class AzureBlobFetcherConfig extends BaseAuthNioFetcherConfig

Configuration for AzureBlobFetcher.

Shared-key authentication uses the configured credentials, where the username is the Azure storage account name and the password is the storage account key.

A SAS token can be given in setSasToken(String), or as the password of the credentials when they have no username. The latter is the way to keep the token secret: like any credentials password, it can be encrypted.

  • Constructor Details

    • AzureBlobFetcherConfig

      public AzureBlobFetcherConfig()
  • Method Details

    • getEndpoint

      public String getEndpoint()
      Optional service endpoint override. When omitted, the endpoint is derived from the reference account as https://<account>.blob.core.windows.net.
    • getSasToken

      public String getSasToken()
      Optional SAS (Shared Access Signature) token used instead of shared-key credentials. It is kept as is in the configuration. To keep it secret (encrypted, or supplied as a variable), leave this empty and give it as the password of the credentials, with no username.
    • setEndpoint

      public AzureBlobFetcherConfig setEndpoint(String endpoint)
      Optional service endpoint override. When omitted, the endpoint is derived from the reference account as https://<account>.blob.core.windows.net.
      Returns:
      this.
    • setSasToken

      public AzureBlobFetcherConfig setSasToken(String sasToken)
      Optional SAS (Shared Access Signature) token used instead of shared-key credentials. It is kept as is in the configuration. To keep it secret (encrypted, or supplied as a variable), leave this empty and give it as the password of the credentials, with no username.
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class BaseAuthNioFetcherConfig
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class BaseAuthNioFetcherConfig
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseAuthNioFetcherConfig
    • toString

      public String toString()
      Overrides:
      toString in class BaseAuthNioFetcherConfig