Class AdlsGen2FetcherConfig


public class AdlsGen2FetcherConfig extends BaseAuthNioFetcherConfig

Configuration for AdlsGen2Fetcher.

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

    • AdlsGen2FetcherConfig

      public AdlsGen2FetcherConfig()
  • Method Details

    • getEndpoint

      public String getEndpoint()
      Optional service endpoint override. When omitted, the endpoint is derived from the reference account as https://<account>.dfs.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.
    • getAcl

      @NonNull public @NonNull AclFetchMode getAcl()
      Which permissions to read and write on each document as its access control list (ACL): the owner, owning group and their rights (AclFetchMode.BASIC), plus the named users and groups of the path's ACL and its mask (AclFetchMode.EXTENDED). Default is AclFetchMode.NONE.
    • setEndpoint

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

      public AdlsGen2FetcherConfig 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.
    • setAcl

      public AdlsGen2FetcherConfig setAcl(@NonNull @NonNull AclFetchMode acl)
      Which permissions to read and write on each document as its access control list (ACL): the owner, owning group and their rights (AclFetchMode.BASIC), plus the named users and groups of the path's ACL and its mask (AclFetchMode.EXTENDED). Default is AclFetchMode.NONE.
      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