Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256". @param secret the secret bytes to use in the verify or signing instance. Ensure the length of the secret is at least 256 bit long @return a valid HMAC256 Algorithm. @throws IllegalArgumentException if t
(String secret)
| 136 | * @throws IllegalArgumentException if the provided Secret is null. |
| 137 | */ |
| 138 | public static Algorithm HMAC256(String secret) throws IllegalArgumentException { |
| 139 | return new HMACAlgorithm("HS256", "HmacSHA256", secret); |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256". |
no outgoing calls