public class ServiceBusUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BODY_REFERENCE_URI_HEADER |
Modifier and Type | Method and Description |
---|---|
static String |
buildSASToken(String resourceUri,
String keyName,
String key,
int hourOffset) |
static String |
buildSASTokenMinutes(String resourceUri,
String keyName,
String key,
int minOffset) |
static Map<String,String> |
checkSASTokenFormat(String sasToken) |
static com.microsoft.azure.storage.blob.CloudBlobContainer |
connectToBlobStorage(String blobAccountName,
String blobAccountKey,
String blobContainerName)
In this method the connection to the Blob Storage is established.
|
static Map<String,String> |
parseSASToken(String sasToken) |
public static final String BODY_REFERENCE_URI_HEADER
public static String buildSASToken(String resourceUri, String keyName, String key, int hourOffset) throws NoSuchAlgorithmException, InvalidKeyException, IllegalStateException, IOException
public static String buildSASTokenMinutes(String resourceUri, String keyName, String key, int minOffset) throws NoSuchAlgorithmException, InvalidKeyException, IllegalStateException, IOException
public static Map<String,String> parseSASToken(String sasToken) throws UnsupportedEncodingException
UnsupportedEncodingException
public static Map<String,String> checkSASTokenFormat(String sasToken) throws UnsupportedEncodingException
UnsupportedEncodingException
public static com.microsoft.azure.storage.blob.CloudBlobContainer connectToBlobStorage(String blobAccountName, String blobAccountKey, String blobContainerName) throws org.mule.api.ConnectionException
blobAccountName
- The account name of the Blob Storage that will be used to store large messages.blobAccountKey
- The account key of the Blob Storage that will be used to store large messages.blobContainerName
- The container name in the Blob Storage that will be used to store large messages. If this parameter is not provided a default container will be created.org.mule.api.ConnectionException
- thrown when a connection cannot be establishedCopyright © 2010–2020. All rights reserved.