Class Utils


  • public final class Utils
    extends Object
    • Method Detail

      • validateContainerName

        public static boolean validateContainerName​(String containerName)
      • isPrefixValid

        public static boolean isPrefixValid​(String prefix)
      • containTokens

        public static boolean containTokens​(String text)
      • getStorageAccount

        public static com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo getStorageAccount​(Item item)
      • getBlobUrl

        public static String getBlobUrl​(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount,
                                        String containerName,
                                        String blobName)
      • generateBlobSASURL

        public static String generateBlobSASURL​(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount,
                                                String containerName,
                                                String blobName)
      • generateBlobPolicy

        public static com.azure.storage.blob.sas.BlobServiceSasSignatureValues generateBlobPolicy()
      • generateExpiryDate

        public static OffsetDateTime generateExpiryDate()
      • getBlobContainerReference

        public static com.azure.storage.blob.BlobContainerClient getBlobContainerReference​(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount,
                                                                                           String containerName,
                                                                                           boolean createIfNotExist)
                                                                                    throws URISyntaxException
        Throws:
        URISyntaxException
      • getCloudStorageAccount

        public static com.azure.storage.blob.BlobServiceClient getCloudStorageAccount​(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount)