Class RsaOaepCipher.Builder

java.lang.Object
cloud.opencode.base.crypto.asymmetric.RsaOaepCipher.Builder
Enclosing class:
RsaOaepCipher

public static final class RsaOaepCipher.Builder extends Object
Builder for RSA-OAEP cipher RSA-OAEP 密码构建器
Since:
JDK 25, opencode-base-crypto V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Method Details

    • digest

      public RsaOaepCipher.Builder digest(DigestAlgorithm digest)
      Set the digest algorithm for OAEP 设置 OAEP 的摘要算法
      Parameters:
      digest - the digest algorithm
      Returns:
      this builder
    • mgf

      public RsaOaepCipher.Builder mgf(String mgf)
      Set the mask generation function 设置掩码生成函数
      Parameters:
      mgf - the MGF name (typically "MGF1")
      Returns:
      this builder
    • label

      public RsaOaepCipher.Builder label(byte[] label)
      Set the label for OAEP (optional) 设置 OAEP 的标签(可选)
      Parameters:
      label - the label bytes
      Returns:
      this builder
    • build

      public RsaOaepCipher build()
      Build the RSA-OAEP cipher 构建 RSA-OAEP 密码
      Returns:
      configured RSA-OAEP cipher