com.alibaba.dashscope.utils.EncryptionConfig Maven / Gradle / Ivy
The newest version!
package com.alibaba.dashscope.utils;
import javax.crypto.SecretKey;
import lombok.Builder.Default;
import lombok.Data;
import lombok.experimental.SuperBuilder;
import org.jetbrains.annotations.NotNull;
@Data
@SuperBuilder
public class EncryptionConfig {
@NotNull private String publicKeyId;
@NotNull private String base64PublicKey;
@NotNull private SecretKey AESEncryptKey;
/** default iv. */
@Default private byte[] iv = "000000000000".getBytes();
}