public class LssUtils extends Object
| Constructor and Description |
|---|
LssUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
hmacSha256(byte[] input,
byte[] secretKey) |
static String |
hmacSha256(byte[] input,
int offset,
int length,
byte[] secretKey) |
static String |
hmacSha256(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) |
public static String hmacSha256(String input, String secretKey)
input - data to calculate macsecretKey - secret keypublic static String hmacSha256(byte[] input, byte[] secretKey)
public static String hmacSha256(byte[] input, int offset, int length, byte[] secretKey)
public static byte[] mac(byte[] input,
SecretKey secretKey)
public static byte[] mac(byte[] input,
int offset,
int length,
SecretKey secretKey)
Copyright © 2023. All rights reserved.