Generate Azure SAS Token on Android
Trying to generate Azure SAS token in order to be able to use Service Bus REST Api. Found this link: http://blog.simontimms.com/2015/01/30/sending-message-to-azure-service-bus-using-rest/ How to achieve the same on Android? My Current attempt looks like this: private String generateSasToken(String uri, String keyName, String key){ String ret = ""; long tokenExpirationTime = (System.currentTimeMillis() / 1000) + (10 * 365 * 24 * 60 * 60); try { String stringToSign = new URL(uri).toString() + "\n" + tokenExpirationTime; SecretKey secretKey = null; byte[] keyBytes = key.getBytes("UTF-8"); Mac mac