类 LssUtils
- java.lang.Object
-
- com.baidubce.services.lss.LssUtils
-
public class LssUtils extends Object
Created by shidaiting01 on 2016/3/24.
-
-
构造器概要
构造器 构造器 说明 LssUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static StringhmacSha256(byte[] input, byte[] secretKey)static StringhmacSha256(byte[] input, int offset, int length, byte[] secretKey)static StringhmacSha256(String input, String secretKey)Encodes the input String using the UTF8 charset and calls hmacSha256;static byte[]mac(byte[] input, int offset, int length, SecretKey secretKey)static byte[]mac(byte[] input, SecretKey secretKey)
-
-
-
方法详细资料
-
hmacSha256
public static String hmacSha256(String input, String secretKey)
Encodes the input String using the UTF8 charset and calls hmacSha256;- 参数:
input- data to calculate macsecretKey- secret key- 返回:
- String, sha256 mac
-
hmacSha256
public static String hmacSha256(byte[] input, byte[] secretKey)
-
hmacSha256
public static String hmacSha256(byte[] input, int offset, int length, byte[] secretKey)
-
mac
public static byte[] mac(byte[] input, SecretKey secretKey)
-
mac
public static byte[] mac(byte[] input, int offset, int length, SecretKey secretKey)
-
-