com.qiniu.api.auth.digest.DigestAuth Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Qiniu Resource (Cloud) Storage SDK demo for Java
The newest version!
package com.qiniu.api.auth.digest;
import com.qiniu.api.auth.AuthException;
import com.qiniu.api.config.Config;
public class DigestAuth {
public static String sign(Mac mac, byte[] data) throws AuthException {
if (mac == null) {
mac = new Mac(Config.ACCESS_KEY, Config.SECRET_KEY);
}
return mac.sign(data);
}
public static String signWithData(Mac mac, byte[] data) throws AuthException {
if (mac == null) {
mac = new Mac(Config.ACCESS_KEY, Config.SECRET_KEY);
}
return mac.signWithData(data);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy