mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Removed Base64 from test
This commit is contained in:
parent
602ea46d67
commit
14a60c7666
File diff suppressed because it is too large
Load Diff
@ -27,6 +27,7 @@ import java.util.StringTokenizer;
|
||||
import javax.crypto.Mac;
|
||||
import javax.crypto.spec.SecretKeySpec;
|
||||
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
import org.apache.commons.httpclient.HttpClient;
|
||||
import org.apache.commons.httpclient.HttpMethod;
|
||||
import org.apache.commons.httpclient.methods.GetMethod;
|
||||
@ -179,7 +180,7 @@ public class UserCloudAPIExecutor {
|
||||
mac.init(keySpec);
|
||||
mac.update(request.getBytes());
|
||||
byte[] encryptedBytes = mac.doFinal();
|
||||
return URLEncoder.encode(Base64.encodeBytes(encryptedBytes), "UTF-8");
|
||||
return URLEncoder.encode(Base64.encodeBase64String(encryptedBytes), "UTF-8");
|
||||
} catch (Exception ex) {
|
||||
System.out.println(ex);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user