Class AzureStorageValidator

java.lang.Object
org.eclipse.edc.azure.blob.validator.AzureStorageValidator

public class AzureStorageValidator extends Object
Validates storage account resource names and keys.

See Azure documentation.

  • Constructor Details

    • AzureStorageValidator

      public AzureStorageValidator()
  • Method Details

    • validateAccountName

      public static void validateAccountName(String accountName)
      Checks if an account name is valid.
      Parameters:
      accountName - A String representing the account name to validate.
      Throws:
      IllegalArgumentException - if the string does not represent a valid account name.
    • validateContainerName

      public static void validateContainerName(String containerName)
      Checks if a container name is valid.
      Parameters:
      containerName - A String representing the container name to validate.
      Throws:
      IllegalArgumentException - if the string does not represent a valid container name.
    • validateBlobName

      public static void validateBlobName(String blobName)
      Checks if a blob name is valid.
      Parameters:
      blobName - A String representing the blob name to validate.
      Throws:
      IllegalArgumentException - if the string does not represent a valid blob name.
    • validateKeyName

      public static void validateKeyName(String keyName)
      Checks if key name is valid.
      Parameters:
      keyName - A string representing blob key secret.
      Throws:
      IllegalArgumentException - if the string is null or blank.