类 LssUtils


  • public class LssUtils
    extends Object
    Created by shidaiting01 on 2016/3/24.
    • 构造器详细资料

      • LssUtils

        public LssUtils()
    • 方法详细资料

      • hmacSha256

        public static String hmacSha256​(String input,
                                        String secretKey)
        Encodes the input String using the UTF8 charset and calls hmacSha256;
        参数:
        input - data to calculate mac
        secretKey - 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)