public EncryptionKey(@NonNull String hexKey) { if (StringUtils.isNullOrEmpty(hexKey)) { throw new IllegalArgumentException("Hex key is null or empty"); } this.key = new SecretKeySpec(StringUtils.hexToBytes(hexKey), ALGORITHM); this.transformation = DEFAULT_TRANSFORMATION; this.hexKey = hexKey; }