Class AesGcmCipher.Builder
java.lang.Object
cloud.opencode.base.crypto.symmetric.AesGcmCipher.Builder
- Enclosing class:
AesGcmCipher
Builder class for AES-GCM cipher.
AES-GCM 加密器构建器。
- Since:
- JDK 25, opencode-base-crypto V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
keySize
Set key size in bits. 设置密钥大小(比特)。- Parameters:
bits- key size (128, 192, or 256) / 密钥大小(128、192 或 256)- Returns:
- this builder / 当前构建器
-
tagLength
Set authentication tag length in bits. 设置认证标签长度(比特)。- Parameters:
bits- tag length (96, 104, 112, 120, or 128) / 标签长度(96、104、112、120 或 128)- Returns:
- this builder / 当前构建器
-
build
Build the AES-GCM cipher instance. 构建 AES-GCM 加密实例。- Returns:
- AES-GCM cipher instance / AES-GCM 加密实例
-