/** * Creates a new Message Authentication (MAC) signer. * * @param secret The secret. Must be at least 256 bits long and not * {@code null}. * * @throws KeyLengthException If the secret length is shorter than the * minimum 256-bit requirement. */ public MACSigner(final byte[] secret) throws KeyLengthException { super(secret, getCompatibleAlgorithms(ByteUtils.bitLength(secret.length))); }