Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ACTIVE - Enum constant in enum class cloud.opencode.base.crypto.rotation.KeyRotation.KeyStatus
-
Key is currently active for encryption
- add(String) - Method in class cloud.opencode.base.crypto.ssl.CertificatePinner.Builder
-
Adds a pin in
sha256/base64==format. - addAll(String...) - Method in class cloud.opencode.base.crypto.ssl.CertificatePinner.Builder
-
Adds multiple pins.
- addKey(K) - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Adds an existing key as a new version.
- addVersion(int, AeadCipher) - Method in class cloud.opencode.base.crypto.versioned.VersionedCipher.Builder
-
Registers a cipher for the given version number.
- AeadCipher - Interface in cloud.opencode.base.crypto.symmetric
-
Interface for AEAD (Authenticated Encryption with Associated Data) ciphers.
- AES_128 - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Symmetric
- AES_192 - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Symmetric
- AES_256 - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Symmetric
- AES_CBC_128 - Enum constant in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
AES-CBC with 128-bit key and PKCS5 padding
- AES_CBC_256 - Enum constant in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
AES-CBC with 256-bit key and PKCS5 padding
- AES_CTR_128 - Enum constant in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
AES-CTR with 128-bit key (Counter mode)
- AES_CTR_256 - Enum constant in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
AES-CTR with 256-bit key (Counter mode)
- AES_GCM_128 - Enum constant in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
AES-GCM with 128-bit key (Recommended AEAD)
- AES_GCM_256 - Enum constant in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
AES-GCM with 256-bit key (Recommended AEAD)
- AES_GCM_NONCE_SIZE - Static variable in class cloud.opencode.base.crypto.random.NonceGenerator
-
Recommended nonce size for AES-GCM (96 bits / 12 bytes).
- aes128() - Static method in class cloud.opencode.base.crypto.symmetric.AesCipher
-
Create AES-128 cipher.
- aes128Gcm() - Static method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
-
Create AES-128-GCM cipher.
- aes256() - Static method in class cloud.opencode.base.crypto.symmetric.AesCipher
-
Create AES-256 cipher (recommended).
- aes256Gcm() - Static method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
-
Create AES-256-GCM cipher (recommended).
- aesCbc() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
AES-CBC cipher AES-CBC 加密
- aesCbc() - Static method in class cloud.opencode.base.crypto.OpenSymmetric
-
Create AES-CBC cipher 创建 AES-CBC 加密
- AesCipher - Class in cloud.opencode.base.crypto.symmetric
-
AES cipher implementation supporting CBC and CTR modes.
- AesCipher.Builder - Class in cloud.opencode.base.crypto.symmetric
-
Builder class for AES cipher.
- aesCtr() - Static method in class cloud.opencode.base.crypto.OpenSymmetric
-
Create AES-CTR cipher 创建 AES-CTR 加密
- aesGcm() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
AES-GCM cipher (recommended) AES-GCM 加密(推荐)
- aesGcm(byte[]) - Static method in class cloud.opencode.base.crypto.streaming.StreamingAead
-
Create a StreamingAead instance using AES-GCM.
- aesGcm256() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
AES-256-GCM cipher AES-256-GCM 加密
- AesGcmCipher - Class in cloud.opencode.base.crypto.symmetric
-
AES-GCM cipher implementation - Authenticated Encryption with Associated Data AES-GCM 加密实现 - 关联数据认证加密
- AesGcmCipher.Builder - Class in cloud.opencode.base.crypto.symmetric
-
Builder class for AES-GCM cipher.
- agree(PrivateKey, PublicKey) - Static method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
-
Performs ECDH key agreement between two parties (static method) 执行两方之间的 ECDH 密钥协商(静态方法)
- agree(PrivateKey, PublicKey) - Static method in class cloud.opencode.base.crypto.keyexchange.X25519Engine
-
Performs X25519 key agreement between two parties (static method) 执行两方之间的 X25519 密钥协商(静态方法)
- agree(PrivateKey, PublicKey) - Static method in class cloud.opencode.base.crypto.keyexchange.X448Engine
-
Performs X448 key agreement between two parties (static method) 执行两方之间的 X448 密钥协商(静态方法)
- agreeAndDerive(PrivateKey, PublicKey, byte[], int) - Static method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
-
Performs ECDH key agreement and derives key material using HKDF (static method) 执行 ECDH 密钥协商并使用 HKDF 派生密钥材料(静态方法)
- agreeAndDerive(PrivateKey, PublicKey, byte[], int) - Static method in class cloud.opencode.base.crypto.keyexchange.X25519Engine
-
Performs X25519 key agreement and derives key material using HKDF (static method) 执行 X25519 密钥协商并使用 HKDF 派生密钥材料(静态方法)
- agreeAndDerive(PrivateKey, PublicKey, byte[], int) - Static method in class cloud.opencode.base.crypto.keyexchange.X448Engine
-
Performs X448 key agreement and derives key material using HKDF (static method) 执行 X448 密钥协商并使用 HKDF 派生密钥材料(静态方法)
- algorithm() - Method in exception class cloud.opencode.base.crypto.exception.OpenCryptoException
-
Returns the cryptographic algorithm associated with this exception.
- algorithm() - Method in exception class cloud.opencode.base.crypto.exception.OpenSignatureException
-
Returns the signature algorithm associated with this exception.
- algorithm() - Method in record class cloud.opencode.base.crypto.jwt.JwtUtil.JwtParts
-
Returns the value of the
algorithmrecord component. - algorithm() - Method in class cloud.opencode.base.crypto.otp.Hotp
-
Returns the HMAC algorithm used by this instance.
- algorithm() - Method in class cloud.opencode.base.crypto.otp.Totp
-
Returns the HMAC algorithm name.
- algorithm() - Method in record class cloud.opencode.base.crypto.versioned.VersionedPayload
-
Returns the value of the
algorithmrecord component. - algorithm(DigestAlgorithm) - Method in class cloud.opencode.base.crypto.password.Pbkdf2Hash.Builder
-
Set the digest algorithm 设置摘要算法
- algorithm(JwtAlgorithm) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets the signing algorithm.
- algorithm(SealedBox.Algorithm) - Method in class cloud.opencode.base.crypto.sealedbox.SealedBox.Builder
-
Sets the algorithm.
- algorithm(String) - Method in class cloud.opencode.base.crypto.otp.Totp.Builder
-
Sets the HMAC algorithm.
- algorithmName() - Method in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
Returns the JWT algorithm name (e.g., "HS256", "RS256").
- algorithmName() - Method in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Hash
- algorithmName() - Method in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.PublicKey
- algorithmName() - Method in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Symmetric
- algorithmNotAvailable(String) - Static method in exception class cloud.opencode.base.crypto.exception.OpenCryptoException
-
Creates an exception for when a cryptographic algorithm is not available.
- aliases() - Method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Get all aliases in key store 获取密钥存储中的所有别名
- allow(String...) - Method in class cloud.opencode.base.crypto.policy.CryptoPolicy.Builder
-
Adds algorithms to the allowed set.
- analyze(byte[]) - Static method in class cloud.opencode.base.crypto.util.CryptoDetector
-
Perform comprehensive cryptographic analysis on byte data.
- analyze(String) - Static method in class cloud.opencode.base.crypto.util.CryptoDetector
-
Perform comprehensive cryptographic analysis on text data.
- argon2() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
Argon2id password hash (recommended) Argon2id 密码哈希(推荐)
- argon2() - Static method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Create Argon2id password hasher (recommended) 创建 Argon2id 密码哈希器(推荐)
- ARGON2 - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
Argon2 hash | Argon2 哈希
- argon2d() - Static method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Creates Argon2d instance with default parameters 创建使用默认参数的 Argon2d 实例
- argon2d() - Static method in class cloud.opencode.base.crypto.password.Argon2Hash
-
Create Argon2d hasher with default parameters (resistant to GPU attacks) 使用默认参数创建 Argon2d 哈希器(抵抗 GPU 攻击)
- ARGON2D - Enum constant in enum class cloud.opencode.base.crypto.enums.PasswordHashAlgorithm
-
Argon2d - Data-dependent mode, resistant to GPU attacks
- ARGON2D - Enum constant in enum class cloud.opencode.base.crypto.password.Argon2Type
-
Argon2d - Data-dependent mode, resistant to GPU attacks Argon2d - 数据依赖模式,抵抗 GPU 攻击
- Argon2Hash - Class in cloud.opencode.base.crypto.password
-
Argon2 password hashing implementation - Modern memory-hard password hashing algorithm (requires Bouncy Castle) Argon2 密码哈希实现 - 现代内存困难密码哈希算法(需要 Bouncy Castle)
- Argon2Hash.Builder - Class in cloud.opencode.base.crypto.password
-
Builder for creating customized Argon2 hashers 用于创建自定义 Argon2 哈希器的构建器
- argon2i() - Static method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Creates Argon2i instance with default parameters 创建使用默认参数的 Argon2i 实例
- argon2i() - Static method in class cloud.opencode.base.crypto.password.Argon2Hash
-
Create Argon2i hasher with default parameters (resistant to side-channel attacks) 使用默认参数创建 Argon2i 哈希器(抵抗旁道攻击)
- ARGON2I - Enum constant in enum class cloud.opencode.base.crypto.enums.PasswordHashAlgorithm
-
Argon2i - Data-independent mode, resistant to side-channel attacks
- ARGON2I - Enum constant in enum class cloud.opencode.base.crypto.password.Argon2Type
-
Argon2i - Data-independent mode, resistant to side-channel attacks Argon2i - 数据独立模式,抵抗旁道攻击
- argon2id() - Static method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Creates Argon2id instance with default OWASP recommended parameters 创建使用 OWASP 推荐默认参数的 Argon2id 实例
- argon2id() - Static method in class cloud.opencode.base.crypto.password.Argon2Hash
-
Create Argon2id hasher with default parameters (recommended for most use cases) 使用默认参数创建 Argon2id 哈希器(推荐用于大多数用例)
- ARGON2ID - Enum constant in enum class cloud.opencode.base.crypto.enums.PasswordHashAlgorithm
-
Argon2id - Hybrid mode combining Argon2i and Argon2d (Recommended)
- ARGON2ID - Enum constant in enum class cloud.opencode.base.crypto.password.Argon2Type
-
Argon2id - Hybrid mode combining Argon2d and Argon2i (Recommended) Argon2id - 混合模式,结合 Argon2d 和 Argon2i(推荐)
- argon2Kdf() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
Argon2 KDF (requires Bouncy Castle) Argon2 密钥派生(需要 Bouncy Castle)
- Argon2Kdf - Class in cloud.opencode.base.crypto.kdf
-
Argon2 key derivation function implementation - Winner of the Password Hashing Competition (PHC) Argon2 密钥派生函数实现 - 密码哈希竞赛(PHC)获胜者
- Argon2Kdf.Builder - Class in cloud.opencode.base.crypto.kdf
-
Builder for Argon2Kdf configuration Argon2Kdf 配置构建器
- Argon2Type - Enum Class in cloud.opencode.base.crypto.password
-
Argon2 algorithm type enumeration - Different variants of Argon2 password hashing Argon2 算法类型枚举 - Argon2 密码哈希的不同变体
- ASCII_ARMOR - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.EncodingType
-
ASCII Armor (PGP) | ASCII Armor (PGP)
- asMap() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns the claims as a map.
- asymmetric(AsymmetricAlgorithm) - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
Custom asymmetric cipher 自定义非对称加密
- asymmetricAlgorithm(AsymmetricAlgorithm) - Method in class cloud.opencode.base.crypto.envelope.HybridCrypto.Builder
-
Set asymmetric algorithm for key encryption 设置用于密钥加密的非对称算法
- AsymmetricAlgorithm - Enum Class in cloud.opencode.base.crypto.enums
-
Asymmetric encryption algorithm enumeration - 非对称加密算法枚举 非对称加密算法的枚举定义
- AsymmetricCipher - Interface in cloud.opencode.base.crypto.asymmetric
-
Interface for asymmetric encryption operations - Provides fluent API for public/private key cryptography 非对称加密操作接口 - 提供公钥/私钥加密的流式 API
- audience() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns the audience claim.
- audience(String) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Sets the audience claim.
- audience(String) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets the audience claim.
- audience(List) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Sets the audience claim with multiple values.
- audience(List) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets the audience claim with multiple values.
- AUDIENCE - Static variable in class cloud.opencode.base.crypto.jwt.JwtClaims
- authenticationFailed(String) - Static method in exception class cloud.opencode.base.crypto.exception.OpenCryptoException
-
Creates an exception for authentication failures.
B
- BASE64 - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.EncodingType
-
Base64 standard encoding | Base64 标准编码
- BASE64_URL - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.EncodingType
-
Base64 URL-safe encoding | Base64 URL安全编码
- Base64UrlCodec - Class in cloud.opencode.base.crypto.codec
-
Base64URL encoding and decoding utility - URL-safe Base64 codec for JWT and web tokens Base64URL 编解码工具类 - 用于 JWT 和 Web 令牌的 URL 安全 Base64 编解码
- basic() - Static method in class cloud.opencode.base.crypto.password.PasswordPolicy
-
Create a basic password policy 创建基本密码策略
- bcrypt() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
BCrypt password hash BCrypt 密码哈希
- bcrypt() - Static method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Create BCrypt password hasher 创建 BCrypt 密码哈希器
- bcrypt(int) - Static method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Create BCrypt password hasher with custom cost 创建自定义代价的 BCrypt 密码哈希器
- BCRYPT - Enum constant in enum class cloud.opencode.base.crypto.enums.PasswordHashAlgorithm
-
BCrypt - Adaptive hash function based on Blowfish (Recommended)
- BCRYPT - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
BCrypt hash | BCrypt 哈希
- BCryptHash - Class in cloud.opencode.base.crypto.password
-
BCrypt password hashing implementation - Adaptive password hashing based on the Blowfish cipher BCrypt 密码哈希实现 - 基于 Blowfish 密码的自适应密码哈希
- BCryptHash.Builder - Class in cloud.opencode.base.crypto.password
-
Builder for creating customized BCrypt hashers 用于创建自定义 BCrypt 哈希器的构建器
- blake2b() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
BLAKE2b digester (requires Bouncy Castle) BLAKE2b 摘要器(需要 Bouncy Castle)
- blake2b(int) - Static method in class cloud.opencode.base.crypto.hash.Blake2Hash
-
Create BLAKE2b hash function with custom digest length 创建指定摘要长度的 BLAKE2b 哈希函数
- blake2b(int) - Static method in class cloud.opencode.base.crypto.OpenDigest
-
Create BLAKE2b digester (requires Bouncy Castle) 创建 BLAKE2b 摘要器(需要 Bouncy Castle)
- BLAKE2B_256 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
BLAKE2B-256 algorithm - 256-bit digest
- BLAKE2B_512 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
BLAKE2B-512 algorithm - 512-bit digest
- blake2b256() - Static method in class cloud.opencode.base.crypto.hash.Blake2Hash
-
Create BLAKE2b-256 hash function (256-bit digest) 创建 BLAKE2b-256 哈希函数(256 位摘要)
- blake2b512() - Static method in class cloud.opencode.base.crypto.hash.Blake2Hash
-
Create BLAKE2b-512 hash function (512-bit digest) 创建 BLAKE2b-512 哈希函数(512 位摘要)
- Blake2Hash - Class in cloud.opencode.base.crypto.hash
-
BLAKE2 hash function implementation - High-speed cryptographic hash function (BLAKE2b, BLAKE2s) BLAKE2 哈希函数实现 - 高速加密哈希函数(BLAKE2b、BLAKE2s)
- blake2s(int) - Static method in class cloud.opencode.base.crypto.hash.Blake2Hash
-
Create BLAKE2s hash function with custom digest length 创建指定摘要长度的 BLAKE2s 哈希函数
- blake2s256() - Static method in class cloud.opencode.base.crypto.hash.Blake2Hash
-
Create BLAKE2s-256 hash function (256-bit digest) 创建 BLAKE2s-256 哈希函数(256 位摘要)
- blake3() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
BLAKE3 digester (requires Bouncy Castle) BLAKE3 摘要器(需要 Bouncy Castle)
- blake3() - Static method in class cloud.opencode.base.crypto.OpenDigest
-
Create BLAKE3 digester (requires Bouncy Castle) 创建 BLAKE3 摘要器(需要 Bouncy Castle)
- BLAKE3 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
BLAKE3 algorithm - 256-bit digest
- Blake3Hash - Class in cloud.opencode.base.crypto.hash
-
BLAKE3 hash function implementation - Next-generation cryptographic hash function BLAKE3 哈希函数实现 - 下一代加密哈希函数
- blockSize(int) - Method in class cloud.opencode.base.crypto.kdf.Scrypt.Builder
-
Sets the block size parameter (r) 设置块大小参数(r)
- blockSize(int) - Method in class cloud.opencode.base.crypto.password.SCryptHash.Builder
-
Set block size parameter (r) 设置块大小参数(r)
- build() - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher.Builder
-
Build the RSA-OAEP cipher 构建 RSA-OAEP 密码
- build() - Method in class cloud.opencode.base.crypto.envelope.HybridCrypto.Builder
-
Build HybridCrypto instance 构建 HybridCrypto 实例
- build() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Builds the JwtClaims instance.
- build() - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf.Builder
-
Builds the Argon2Kdf instance 构建 Argon2Kdf 实例
- build() - Method in class cloud.opencode.base.crypto.kdf.Scrypt.Builder
-
Builds the Scrypt instance 构建 Scrypt 实例
- build() - Method in class cloud.opencode.base.crypto.otp.Totp.Builder
-
Builds the Totp instance with the configured settings.
- build() - Method in class cloud.opencode.base.crypto.password.Argon2Hash.Builder
-
Build the Argon2Hash instance 构建 Argon2Hash 实例
- build() - Method in class cloud.opencode.base.crypto.password.BCryptHash.Builder
-
Build the BCryptHash instance 构建 BCryptHash 实例
- build() - Method in class cloud.opencode.base.crypto.password.PasswordPolicy.Builder
-
Build the policy 构建策略
- build() - Method in class cloud.opencode.base.crypto.password.Pbkdf2Hash.Builder
-
Build the Pbkdf2Hash instance 构建 Pbkdf2Hash 实例
- build() - Method in class cloud.opencode.base.crypto.password.SCryptHash.Builder
-
Build the SCryptHash instance 构建 SCryptHash 实例
- build() - Method in class cloud.opencode.base.crypto.policy.CryptoPolicy.Builder
-
Builds an immutable CryptoPolicy from the current builder state.
- build() - Method in class cloud.opencode.base.crypto.rotation.KeyRotation.Builder
- build() - Method in class cloud.opencode.base.crypto.sealedbox.SealedBox.Builder
-
Builds the SealedBox.
- build() - Method in class cloud.opencode.base.crypto.ssl.CertificatePinner.Builder
-
Builds the
CertificatePinner. - build() - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Builds the SSLContext.
- build() - Method in class cloud.opencode.base.crypto.symmetric.AesCipher.Builder
-
Build the AES cipher instance.
- build() - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher.Builder
-
Build the AES-GCM cipher instance.
- build() - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher.Builder
-
Build the ChaCha20-Poly1305 cipher instance.
- build() - Method in class cloud.opencode.base.crypto.versioned.VersionedCipher.Builder
-
Builds an immutable VersionedCipher from the current builder state.
- builder() - Static method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
-
Create a builder for customizing RSA-OAEP parameters 创建用于自定义 RSA-OAEP 参数的构建器
- builder() - Static method in class cloud.opencode.base.crypto.envelope.HybridCrypto
-
Create a new builder for custom configuration 创建用于自定义配置的构建器
- builder() - Static method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Creates a new claims builder.
- builder() - Static method in class cloud.opencode.base.crypto.jwt.JwtUtil
-
Creates a new JWT builder.
- builder() - Static method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Creates a builder for Argon2Kdf configuration 创建 Argon2Kdf 配置构建器
- builder() - Static method in class cloud.opencode.base.crypto.kdf.Scrypt
-
Creates a builder for Scrypt configuration 创建 Scrypt 配置构建器
- builder() - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Creates a new JWT builder for advanced configuration.
- builder() - Static method in class cloud.opencode.base.crypto.otp.Totp
-
Creates a new Builder for configuring a TOTP instance.
- builder() - Static method in class cloud.opencode.base.crypto.password.Argon2Hash
-
Create a builder for custom Argon2 configuration 创建用于自定义 Argon2 配置的构建器
- builder() - Static method in class cloud.opencode.base.crypto.password.BCryptHash
-
Create a builder for custom BCrypt configuration 创建用于自定义 BCrypt 配置的构建器
- builder() - Static method in class cloud.opencode.base.crypto.password.PasswordPolicy
-
Create a new builder 创建新的构建器
- builder() - Static method in class cloud.opencode.base.crypto.password.Pbkdf2Hash
-
Create a builder for custom PBKDF2 configuration 创建用于自定义 PBKDF2 配置的构建器
- builder() - Static method in class cloud.opencode.base.crypto.password.SCryptHash
-
Create a builder for custom SCrypt configuration 创建用于自定义 SCrypt 配置的构建器
- builder() - Static method in class cloud.opencode.base.crypto.policy.CryptoPolicy
-
Creates a new Builder for constructing a custom CryptoPolicy.
- builder() - Static method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Creates a new builder.
- builder() - Static method in class cloud.opencode.base.crypto.sealedbox.SealedBox
-
Creates a new builder.
- builder() - Static method in class cloud.opencode.base.crypto.ssl.CertificatePinner
-
Creates a builder for configuring certificate pins.
- builder() - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Creates a builder for SSLContext.
- builder() - Static method in class cloud.opencode.base.crypto.symmetric.AesCipher
-
Create a builder for AES cipher.
- builder() - Static method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
-
Create a builder for AES-GCM cipher.
- builder() - Static method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
-
Create a builder for ChaCha20-Poly1305 cipher.
- builder() - Static method in class cloud.opencode.base.crypto.versioned.VersionedCipher
-
Creates a new Builder for constructing a VersionedCipher.
- Builder() - Constructor for class cloud.opencode.base.crypto.symmetric.AesCipher.Builder
- Builder() - Constructor for class cloud.opencode.base.crypto.symmetric.AesGcmCipher.Builder
- Builder() - Constructor for class cloud.opencode.base.crypto.symmetric.ChaChaCipher.Builder
- bytesToInt(byte[]) - Static method in class cloud.opencode.base.crypto.util.ByteUtil
-
Convert byte array to int (big-endian) 将字节数组转换为int(大端序)
- bytesToLong(byte[]) - Static method in class cloud.opencode.base.crypto.util.ByteUtil
-
Convert byte array to long (big-endian) 将字节数组转换为long(大端序)
- ByteUtil - Class in cloud.opencode.base.crypto.util
-
Byte array manipulation utilities for cryptographic operations - Provides operations for concatenation, splitting, XOR, and padding 加密操作的字节数组操作工具 - 提供连接、拆分、异或和填充操作
C
- calculateEntropy(byte[]) - Static method in class cloud.opencode.base.crypto.util.CryptoDetector
-
Calculate Shannon entropy of byte data.
- calculateEntropy(String) - Static method in class cloud.opencode.base.crypto.util.CryptoDetector
-
Calculate Shannon entropy of string data.
- CAMELLIA_128 - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Symmetric
- CAMELLIA_192 - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Symmetric
- CAMELLIA_256 - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Symmetric
- canEncrypt() - Method in record class cloud.opencode.base.crypto.pgp.PgpKeyPair
-
Checks if this key pair can be used for encryption.
- canSign() - Method in record class cloud.opencode.base.crypto.pgp.PgpKeyPair
-
Checks if this key pair can be used for signing.
- cbc() - Static method in class cloud.opencode.base.crypto.symmetric.AesCipher
-
Create AES cipher in CBC mode.
- cbc() - Static method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
-
Create SM4 cipher in CBC mode.
- CBC - Enum constant in enum class cloud.opencode.base.crypto.symmetric.CipherMode
-
Cipher Block Chaining mode - Requires IV.
- CCM - Enum constant in enum class cloud.opencode.base.crypto.symmetric.CipherMode
-
Counter with CBC-MAC mode - AEAD mode.
- CertificatePinner - Class in cloud.opencode.base.crypto.ssl
-
Certificate Pinner - SHA-256 SPKI Fingerprint Certificate Pinning 证书固定器 - SHA-256 SPKI 指纹证书固定
- CertificatePinner.Builder - Class in cloud.opencode.base.crypto.ssl
-
Builder for
CertificatePinner. - chaCha20(byte[]) - Static method in class cloud.opencode.base.crypto.streaming.StreamingAead
-
Create a StreamingAead instance using ChaCha20-Poly1305.
- CHACHA20_NONCE_SIZE - Static variable in class cloud.opencode.base.crypto.random.NonceGenerator
-
Recommended nonce size for ChaCha20-Poly1305 (96 bits / 12 bytes).
- CHACHA20_POLY1305 - Enum constant in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
ChaCha20-Poly1305 with 256-bit key (Recommended AEAD)
- chacha20Poly1305() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
ChaCha20-Poly1305 cipher ChaCha20-Poly1305 加密
- ChaChaCipher - Class in cloud.opencode.base.crypto.symmetric
-
ChaCha20-Poly1305 cipher implementation - Modern AEAD cipher ChaCha20-Poly1305 加密实现 - 现代 AEAD 加密
- ChaChaCipher.Builder - Class in cloud.opencode.base.crypto.symmetric
-
Builder class for ChaCha20-Poly1305 cipher.
- check(String, int) - Method in class cloud.opencode.base.crypto.policy.CryptoPolicy
-
Checks whether the given algorithm with key size is allowed, throwing an exception if not.
- checkClientTrusted(X509Certificate[], String) - Method in class cloud.opencode.base.crypto.ssl.TrustAllManager
-
Does not check client certificates.
- checkServerTrusted(X509Certificate[], String) - Method in class cloud.opencode.base.crypto.ssl.TrustAllManager
-
Does not check server certificates.
- cipher() - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Creates a new PGP cipher builder for advanced configuration.
- CipherMode - Enum Class in cloud.opencode.base.crypto.symmetric
-
Cipher mode enumeration for symmetric encryption algorithms.
- ciphertext() - Method in class cloud.opencode.base.crypto.envelope.EncryptedEnvelope
-
Returns the ciphertext.
- ciphertext() - Method in record class cloud.opencode.base.crypto.versioned.VersionedPayload
-
Returns a defensive copy of the ciphertext.
- claim(String, Object) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Sets a custom claim.
- claim(String, Object) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets a custom claim.
- claims() - Method in record class cloud.opencode.base.crypto.jwt.JwtUtil.JwtParts
-
Returns the value of the
claimsrecord component. - claims() - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Creates a new claims builder.
- claims(JwtClaims) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets multiple claims.
- claims(Map) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Sets multiple claims from a map.
- claims(Map) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets multiple claims from a map.
- close() - Method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Close the key store and clear sensitive data 关闭密钥存储并清除敏感数据
- close() - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
- close() - Method in class cloud.opencode.base.crypto.streaming.StreamingAead
-
Securely erase key material and AAD from memory.
- close() - Method in class cloud.opencode.base.crypto.util.SecureBytes
-
Close this SecureBytes by zeroing the internal data.
- cloud.opencode.base.crypto - module cloud.opencode.base.crypto
-
OpenCode Base Crypto Module OpenCode 基础加密模块
- cloud.opencode.base.crypto - package cloud.opencode.base.crypto
- cloud.opencode.base.crypto.asymmetric - package cloud.opencode.base.crypto.asymmetric
- cloud.opencode.base.crypto.codec - package cloud.opencode.base.crypto.codec
- cloud.opencode.base.crypto.enums - package cloud.opencode.base.crypto.enums
- cloud.opencode.base.crypto.envelope - package cloud.opencode.base.crypto.envelope
- cloud.opencode.base.crypto.exception - package cloud.opencode.base.crypto.exception
- cloud.opencode.base.crypto.hash - package cloud.opencode.base.crypto.hash
- cloud.opencode.base.crypto.jwt - package cloud.opencode.base.crypto.jwt
- cloud.opencode.base.crypto.kdf - package cloud.opencode.base.crypto.kdf
- cloud.opencode.base.crypto.key - package cloud.opencode.base.crypto.key
- cloud.opencode.base.crypto.keyexchange - package cloud.opencode.base.crypto.keyexchange
- cloud.opencode.base.crypto.mac - package cloud.opencode.base.crypto.mac
- cloud.opencode.base.crypto.otp - package cloud.opencode.base.crypto.otp
- cloud.opencode.base.crypto.password - package cloud.opencode.base.crypto.password
- cloud.opencode.base.crypto.pgp - package cloud.opencode.base.crypto.pgp
- cloud.opencode.base.crypto.policy - package cloud.opencode.base.crypto.policy
- cloud.opencode.base.crypto.random - package cloud.opencode.base.crypto.random
- cloud.opencode.base.crypto.rotation - package cloud.opencode.base.crypto.rotation
- cloud.opencode.base.crypto.sealedbox - package cloud.opencode.base.crypto.sealedbox
- cloud.opencode.base.crypto.signature - package cloud.opencode.base.crypto.signature
- cloud.opencode.base.crypto.ssl - package cloud.opencode.base.crypto.ssl
- cloud.opencode.base.crypto.streaming - package cloud.opencode.base.crypto.streaming
- cloud.opencode.base.crypto.symmetric - package cloud.opencode.base.crypto.symmetric
- cloud.opencode.base.crypto.util - package cloud.opencode.base.crypto.util
- cloud.opencode.base.crypto.versioned - package cloud.opencode.base.crypto.versioned
- compare(byte[], byte[]) - Static method in class cloud.opencode.base.crypto.util.ConstantTimeUtil
-
Constant-time byte array comparison 常量时间字节数组比较
- compute(byte[]) - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- compute(byte[]) - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- compute(byte[]) - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Computes MAC for the given byte array 计算给定字节数组的 MAC 值
- compute(byte[]) - Method in class cloud.opencode.base.crypto.mac.Poly1305
- compute(String) - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- compute(String) - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- compute(String) - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Computes MAC for the given string (UTF-8 encoded) 计算给定字符串的 MAC 值(UTF-8 编码)
- compute(String) - Method in class cloud.opencode.base.crypto.mac.Poly1305
- computeBase64(byte[]) - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- computeBase64(byte[]) - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- computeBase64(byte[]) - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Computes MAC and returns as Base64 string 计算 MAC 值并返回 Base64 字符串
- computeBase64(byte[]) - Method in class cloud.opencode.base.crypto.mac.Poly1305
- computeHex(byte[]) - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- computeHex(byte[]) - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- computeHex(byte[]) - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Computes MAC and returns as hexadecimal string 计算 MAC 值并返回十六进制字符串
- computeHex(byte[]) - Method in class cloud.opencode.base.crypto.mac.Poly1305
- computePin(X509Certificate) - Static method in class cloud.opencode.base.crypto.ssl.CertificatePinner
-
Computes the
sha256/base64==pin for the given certificate. - computeSharedSecret() - Method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
- computeSharedSecret() - Method in interface cloud.opencode.base.crypto.keyexchange.KeyExchangeEngine
-
Computes the shared secret using the configured keys 使用配置的密钥计算共享密钥
- computeSharedSecret() - Method in class cloud.opencode.base.crypto.keyexchange.X25519Engine
- computeSharedSecret() - Method in class cloud.opencode.base.crypto.keyexchange.X448Engine
- concat(byte[]...) - Static method in class cloud.opencode.base.crypto.util.ByteUtil
-
Concatenate multiple byte arrays into a single array 将多个字节数组连接成单个数组
- constantTimeEquals(byte[], byte[]) - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Constant-time byte array comparison to prevent timing attacks 常量时间字节数组比较,防止时序攻击
- constantTimeEquals(String, String) - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Constant-time string comparison to prevent timing attacks 常量时间字符串比较,防止时序攻击
- ConstantTimeUtil - Class in cloud.opencode.base.crypto.util
-
Constant-time comparison utilities to prevent timing attacks - All operations execute in constant time regardless of input values 常量时间比较工具,防止时序攻击 - 所有操作都以恒定时间执行,与输入值无关
- contains(String) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Checks if a claim is present.
- containsAlias(String) - Method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Check if key store contains entry with given alias 检查密钥存储是否包含给定别名的条目
- cost(int) - Method in class cloud.opencode.base.crypto.password.BCryptHash.Builder
-
Set the cost factor (number of iterations = 2^cost) 设置成本因子(迭代次数 = 2^成本)
- counter(long, int) - Static method in class cloud.opencode.base.crypto.random.NonceGenerator
-
Generates a counter-based nonce by encoding a counter value into bytes.
- create() - Static method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
-
Create a new RSA cipher instance 创建新的 RSA 密码实例
- create() - Static method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
-
Create a new SM2 cipher instance 创建新的 SM2 密码实例
- create() - Static method in class cloud.opencode.base.crypto.hash.Blake3Hash
-
Create BLAKE3 hash function with default digest length (256-bit) 创建 BLAKE3 哈希函数(默认 256 位摘要)
- create() - Static method in class cloud.opencode.base.crypto.hash.Sm3Hash
-
Create SM3 hash function (256-bit digest) 创建 SM3 哈希函数(256 位摘要)
- create() - Static method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Create a new empty key store 创建新的空密钥存储
- create() - Static method in class cloud.opencode.base.crypto.keyexchange.X25519Engine
-
Creates a new X25519 engine instance 创建新的 X25519 引擎实例
- create() - Static method in class cloud.opencode.base.crypto.keyexchange.X448Engine
-
Creates a new X448 engine instance 创建新的 X448 引擎实例
- create() - Static method in class cloud.opencode.base.crypto.password.BCryptHash
-
Create BCrypt hasher with default cost factor (12) 使用默认成本因子(12)创建 BCrypt 哈希器
- create() - Static method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Creates a new PGP cipher instance.
- create() - Static method in class cloud.opencode.base.crypto.signature.Sm2Signature
-
Create SM2 signature instance.
- create() - Static method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Creates a new builder.
- create() - Static method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
-
Create default AES-GCM cipher (256-bit).
- create() - Static method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
-
Create ChaCha20-Poly1305 cipher.
- create(int) - Static method in class cloud.opencode.base.crypto.hash.Blake3Hash
-
Create BLAKE3 hash function with custom digest length 创建指定摘要长度的 BLAKE3 哈希函数
- createContext(InputStream, String, InputStream, String) - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Creates a SSLContext from streams.
- createContext(Path, String) - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Creates a SSLContext with custom truststore.
- createContext(Path, String, Path, String) - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Creates a SSLContext with keystore and truststore.
- createdAt() - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.VersionedKey
-
Returns the value of the
createdAtrecord component. - createTrustAllContext() - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Creates a SSLContext that trusts all certificates.
- createTrustAllSocketFactory() - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Creates a SSLSocketFactory that trusts all certificates.
- createUnsafe(boolean) - Static method in class cloud.opencode.base.crypto.ssl.TrustAllManager
-
Creates a new instance with explicit acknowledgment of security risks.
- CryptoAnalysis(double, boolean, boolean, boolean, boolean, CryptoDetector.EncodingType, CryptoDetector.KeyFormat, CryptoDetector.HashFormat) - Constructor for record class cloud.opencode.base.crypto.util.CryptoDetector.CryptoAnalysis
-
Creates an instance of a
CryptoAnalysisrecord class. - CryptoDetector - Class in cloud.opencode.base.crypto.util
-
CryptoDetector - Cryptographic Data Detection Utility CryptoDetector - 加密数据检测工具
- CryptoDetector.CryptoAnalysis - Record Class in cloud.opencode.base.crypto.util
-
Result of cryptographic analysis.
- CryptoDetector.EncodingType - Enum Class in cloud.opencode.base.crypto.util
-
Encoding types that can be detected.
- CryptoDetector.HashFormat - Enum Class in cloud.opencode.base.crypto.util
-
Hash formats that can be detected.
- CryptoDetector.KeyFormat - Enum Class in cloud.opencode.base.crypto.util
-
Key formats that can be detected.
- CryptoPolicy - Class in cloud.opencode.base.crypto.policy
-
Immutable cryptographic algorithm policy for enforcing allowed/denied algorithms and minimum key sizes.
- CryptoPolicy.Builder - Class in cloud.opencode.base.crypto.policy
-
Builder for constructing custom
CryptoPolicyinstances. - CryptoUtil - Class in cloud.opencode.base.crypto.util
-
Cryptographic utility class providing security-focused operations - Thread-safe utility for secure random generation, constant-time comparison, and key validation 加密工具类提供安全相关操作 - 线程安全的工具类,用于安全随机数生成、常量时间比较和密钥验证
- ctr() - Static method in class cloud.opencode.base.crypto.symmetric.AesCipher
-
Create AES cipher in CTR mode.
- CTR - Enum constant in enum class cloud.opencode.base.crypto.symmetric.CipherMode
-
Counter mode - Requires IV.
- currentVersion(int) - Method in class cloud.opencode.base.crypto.versioned.VersionedCipher.Builder
-
Sets the current (active) version used for encryption.
- CURVE25519 - Enum constant in enum class cloud.opencode.base.crypto.enums.CurveType
-
Curve25519 for ECDH (X25519)
- CURVE448 - Enum constant in enum class cloud.opencode.base.crypto.enums.CurveType
-
Curve448 for ECDH (X448)
- CurveType - Enum Class in cloud.opencode.base.crypto.enums
-
Elliptic curve type enumeration - 椭圆曲线类型枚举 椭圆曲线类型的枚举定义
D
- dataTooLong(String, int) - Static method in exception class cloud.opencode.base.crypto.exception.OpenCryptoException
-
Creates an exception for data that exceeds maximum size.
- decode(String) - Static method in class cloud.opencode.base.crypto.codec.Base64UrlCodec
-
Decode Base64URL string to byte array 将 Base64URL 字符串解码为字节数组
- decode(String) - Static method in class cloud.opencode.base.crypto.codec.HexCodec
-
Decode hexadecimal string to byte array (case-insensitive) 将十六进制字符串解码为字节数组(不区分大小写)
- decode(String) - Static method in class cloud.opencode.base.crypto.codec.PemCodec
-
Decode PEM formatted string to bytes 将 PEM 格式字符串解码为字节
- decodeCertificate(String) - Static method in class cloud.opencode.base.crypto.codec.PemCodec
-
Decode PEM formatted certificate to bytes 将 PEM 格式的证书解码为字节
- decodeNoPadding(String) - Static method in class cloud.opencode.base.crypto.codec.Base64UrlCodec
-
Decode Base64URL string without padding to byte array 将无填充的 Base64URL 字符串解码为字节数组
- decodePrivateKey(String) - Static method in class cloud.opencode.base.crypto.codec.PemCodec
-
Decode PEM formatted private key to bytes 将 PEM 格式的私钥解码为字节
- decodePublicKey(String) - Static method in class cloud.opencode.base.crypto.codec.PemCodec
-
Decode PEM formatted public key to bytes 将 PEM 格式的公钥解码为字节
- decrypt(byte[]) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Decrypt data using private key 使用私钥解密数据
- decrypt(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- decrypt(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- decrypt(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- decrypt(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- decrypt(byte[]) - Method in class cloud.opencode.base.crypto.envelope.HybridCrypto
-
Decrypt ciphertext using hybrid encryption 使用混合加密解密密文
- decrypt(byte[]) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Decrypt data with private key 使用私钥解密数据
- decrypt(byte[]) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Decrypt data 解密数据
- decrypt(byte[]) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Decrypts raw encrypted bytes.
- decrypt(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Decrypt ciphertext bytes.
- decrypt(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- decrypt(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- decrypt(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- decrypt(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- decrypt(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Decrypt ciphertext bytes.
- decrypt(byte[]) - Method in class cloud.opencode.base.crypto.versioned.VersionedCipher
-
Decrypts a serialized VersionedPayload, auto-detecting the version.
- decrypt(byte[], KeyPair) - Method in class cloud.opencode.base.crypto.sealedbox.SealedBox
-
Decrypts a sealed message.
- decrypt(byte[], SecretKey) - Static method in class cloud.opencode.base.crypto.sealedbox.SecretBox
-
Decrypts a message.
- decrypt(byte[], PGPSecretKey, String) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Decrypts binary data using the secret key.
- decrypt(EncryptedEnvelope) - Method in class cloud.opencode.base.crypto.envelope.EnvelopeCrypto
-
Decrypt encrypted envelope 解密加密信封
- decrypt(EncryptedEnvelope, byte[]) - Method in class cloud.opencode.base.crypto.envelope.EnvelopeCrypto
-
Decrypt encrypted envelope with additional authenticated data 解密加密信封,支持附加认证数据
- decrypt(InputStream, OutputStream) - Method in class cloud.opencode.base.crypto.streaming.StreamingAead
-
Decrypt data from an input stream to an output stream.
- decrypt(String, PgpKeyPair, String) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Decrypts an armored message using the key pair.
- decrypt(String, String, String) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Decrypts an armored message using the armored secret key.
- decrypt(String, PGPSecretKey, String) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Decrypts an armored message using the secret key.
- decryptArmored(String) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Decrypts armored ASCII data.
- decryptArmoredToBytes(String) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Decrypts armored ASCII data to bytes.
- decryptAsString(byte[], SecretKey) - Static method in class cloud.opencode.base.crypto.sealedbox.SecretBox
-
Decrypts a message and returns as string.
- decryptBase64(String) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Decrypt Base64 encoded ciphertext 解密 Base64 编码的密文
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.envelope.EnvelopeCrypto
-
Decrypt Base64 encoded encrypted envelope 解密 Base64 编码的加密信封
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.envelope.HybridCrypto
-
Decrypt Base64 encoded ciphertext 解密 Base64 编码的密文
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Decrypt Base64-encoded ciphertext 解密 Base64 编码的密文
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Decrypt Base64-encoded ciphertext 解密 Base64 编码的密文
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Decrypts Base64 encoded data.
- decryptBase64(String) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Decrypt Base64 encoded ciphertext.
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- decryptBase64(String) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Decrypt Base64 encoded ciphertext.
- decryptBase64(String) - Method in class cloud.opencode.base.crypto.versioned.VersionedCipher
-
Decrypts a Base64 encoded payload.
- decryptBase64ToString(String) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Decrypt Base64-encoded ciphertext to string 解密 Base64 编码的密文为字符串
- decryptBase64ToString(String) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Decrypt Base64-encoded ciphertext to string 解密 Base64 编码的密文为字符串
- decryptBase64ToString(String) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Decrypts Base64 encoded data to string.
- decryptBase64ToString(String) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Decrypt Base64 encoded ciphertext to string.
- decryptBase64ToString(String) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- decryptBase64ToString(String) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- decryptBase64ToString(String) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- decryptBase64ToString(String) - Method in class cloud.opencode.base.crypto.versioned.VersionedCipher
-
Decrypts a Base64 encoded payload and returns the result as a string.
- decryptFile(Path, Path) - Method in class cloud.opencode.base.crypto.streaming.StreamingAead
-
Decrypt a file.
- decryptFile(Path, Path) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Decrypt a file.
- decryptFile(Path, Path) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- decryptFile(Path, Path) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- decryptFile(Path, Path) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- decryptHex(String) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Decrypt hexadecimal encoded ciphertext 解密十六进制编码的密文
- decryptHex(String) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- decryptHex(String) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- decryptHex(String) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- decryptHex(String) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- decryptHex(String) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Decrypt hex-encoded ciphertext 解密十六进制编码的密文
- decryptHex(String) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Decrypt hex-encoded ciphertext 解密十六进制编码的密文
- decryptHex(String) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Decrypt hexadecimal encoded ciphertext.
- decryptHex(String) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- decryptHex(String) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- decryptHex(String) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- decryptHex(String) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- decryptHex(String) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Decrypt hexadecimal encoded ciphertext.
- decryptHexToString(String) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Decrypt hex-encoded ciphertext to string 解密十六进制编码的密文为字符串
- decryptHexToString(String) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Decrypt hex-encoded ciphertext to string 解密十六进制编码的密文为字符串
- decryptionFailed(String, Throwable) - Static method in exception class cloud.opencode.base.crypto.exception.OpenCryptoException
-
Creates an exception for decryption failures.
- decryptStream(InputStream) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Create a decrypting input stream.
- decryptStream(InputStream) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- decryptStream(InputStream) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- decryptStream(InputStream) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- decryptToString(byte[]) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Decrypt data and return as string 解密数据并返回字符串
- decryptToString(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- decryptToString(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- decryptToString(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- decryptToString(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- decryptToString(byte[]) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Decrypt and return as string (UTF-8) 解密并返回字符串(UTF-8)
- decryptToString(byte[]) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Decrypt and return as string (UTF-8) 解密并返回字符串(UTF-8)
- decryptToString(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Decrypt and convert to string.
- decryptToString(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- decryptToString(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- decryptToString(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- decryptToString(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- decryptToString(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Decrypt and convert to string.
- decryptWithAad(byte[], SecretKey, byte[]) - Static method in class cloud.opencode.base.crypto.sealedbox.SecretBox
-
Decrypts with additional authenticated data (AAD).
- DEFAULT_HASH - Static variable in class cloud.opencode.base.crypto.pgp.PgpAlgorithm
-
Default hash algorithm.
- DEFAULT_RSA_KEY_SIZE - Static variable in class cloud.opencode.base.crypto.pgp.PgpAlgorithm
-
Default RSA key size in bits.
- DEFAULT_SYMMETRIC - Static variable in class cloud.opencode.base.crypto.pgp.PgpAlgorithm
-
Default symmetric algorithm.
- defaultPolicy() - Static method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Get default password policy 获取默认密码策略
- defaultPolicy() - Static method in class cloud.opencode.base.crypto.password.PasswordPolicy
-
Create a default password policy (OWASP recommended) 创建默认密码策略(OWASP 推荐)
- deleteEntry(String) - Method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Delete entry from key store 从密钥存储中删除条目
- deleteRetiredKeys() - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Removes retired keys permanently.
- deny(String...) - Method in class cloud.opencode.base.crypto.policy.CryptoPolicy.Builder
-
Adds algorithms to the denied set.
- DEPRECATED - Enum constant in enum class cloud.opencode.base.crypto.rotation.KeyRotation.KeyStatus
-
Key is deprecated, only for decryption
- derive(byte[], byte[], byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
- derive(byte[], byte[], byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Hkdf
- derive(byte[], byte[], byte[], int) - Method in interface cloud.opencode.base.crypto.kdf.KdfEngine
-
Derives a key from input key material with salt and info parameters 使用盐值和信息参数从输入密钥材料派生密钥
- derive(byte[], byte[], byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Pbkdf2
- derive(byte[], byte[], byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Scrypt
- derive(byte[], byte[], String, int) - Static method in class cloud.opencode.base.crypto.key.SecretKeyUtil
-
Derive secret key from master key using PBKDF2 使用 PBKDF2 从主密钥派生对称密钥
- derive(byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
- derive(byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Hkdf
- derive(byte[], int) - Method in interface cloud.opencode.base.crypto.kdf.KdfEngine
-
Derives a key from input key material with default parameters 使用默认参数从输入密钥材料派生密钥
- derive(byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Pbkdf2
- derive(byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Scrypt
- deriveFromPassword(char[], byte[], String, int) - Static method in class cloud.opencode.base.crypto.key.SecretKeyUtil
-
Derive secret key from password using PBKDF2 使用 PBKDF2 从密码派生对称密钥
- deriveKey(byte[], byte[], byte[], byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Derives a key from password and salt with optional additional data and secret 使用可选的附加数据和密钥从密码和盐值派生密钥
- deriveKey(byte[], byte[], byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Hkdf
-
Derives key material from input keying material (IKM) with optional salt 从输入密钥材料和可选盐值派生密钥
- deriveKey(byte[], byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Derives a key from password and salt using Argon2 algorithm 使用 Argon2 算法从密码和盐值派生密钥
- deriveKey(byte[], byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Hkdf
-
Derives key material from input keying material (IKM) 从输入密钥材料派生密钥
- deriveKey(byte[], int) - Method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
- deriveKey(byte[], int) - Method in interface cloud.opencode.base.crypto.keyexchange.KeyExchangeEngine
-
Derives key material from the shared secret using HKDF 使用 HKDF 从共享密钥派生密钥材料
- deriveKey(byte[], int) - Method in class cloud.opencode.base.crypto.keyexchange.X25519Engine
- deriveKey(byte[], int) - Method in class cloud.opencode.base.crypto.keyexchange.X448Engine
- deriveKey(char[], byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Derives a key from password (as char array) and salt 从密码(字符数组)和盐值派生密钥
- deriveKey(char[], byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Pbkdf2
-
Derives a key from a password and salt 从密码和盐值派生密钥
- deriveKey(char[], byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Scrypt
-
Derives a key from a password and salt using Scrypt 使用 Scrypt 从密码和盐值派生密钥
- deriveKey(char[], byte[], int, int) - Method in class cloud.opencode.base.crypto.kdf.Pbkdf2
-
Derives a key from a password and salt with custom iteration count 使用自定义迭代次数从密码和盐值派生密钥
- deriveKey(String, byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Derives a key from password string and salt 从密码字符串和盐值派生密钥
- deriveKeys(byte[], byte[], byte[][], int[]) - Method in class cloud.opencode.base.crypto.kdf.Hkdf
-
Derives multiple keys from the same input key material with different info contexts 使用不同的信息上下文从相同的输入密钥材料派生多个密钥
- deserialize(byte[]) - Static method in record class cloud.opencode.base.crypto.versioned.VersionedPayload
-
Deserializes a byte array into a VersionedPayload.
- detectedEncoding() - Method in record class cloud.opencode.base.crypto.util.CryptoDetector.CryptoAnalysis
-
Returns the value of the
detectedEncodingrecord component. - detectedHashFormat() - Method in record class cloud.opencode.base.crypto.util.CryptoDetector.CryptoAnalysis
-
Returns the value of the
detectedHashFormatrecord component. - detectedKeyFormat() - Method in record class cloud.opencode.base.crypto.util.CryptoDetector.CryptoAnalysis
-
Returns the value of the
detectedKeyFormatrecord component. - detectEncoding(String) - Static method in class cloud.opencode.base.crypto.util.CryptoDetector
-
Detect the encoding type of a string.
- detectHashFormat(String) - Static method in class cloud.opencode.base.crypto.util.CryptoDetector
-
Detect the hash format from a string.
- detectKeyFormat(String) - Static method in class cloud.opencode.base.crypto.util.CryptoDetector
-
Detect the key format from a string.
- digest(byte[]) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Compute digest of byte array 计算字节数组的摘要
- digest(DigestAlgorithm) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher.Builder
-
Set the digest algorithm for OAEP 设置 OAEP 的摘要算法
- digest(InputStream) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Compute digest of input stream 计算输入流摘要
- digest(String) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Compute digest of string (UTF-8) 计算字符串的摘要(UTF-8)
- DigestAlgorithm - Enum Class in cloud.opencode.base.crypto.enums
-
Digest algorithm enumeration for cryptographic hash functions - 摘要算法枚举 加密哈希函数的摘要算法枚举
- digestBase64(byte[]) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Compute digest and return as Base64 string 计算摘要并返回 Base64 字符串
- digestBase64(String) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Compute digest of string and return as Base64 string 计算字符串摘要并返回 Base64 字符串
- digester(DigestAlgorithm) - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
Custom digester by algorithm 自定义摘要器
- digestFile(Path) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Compute digest of file 计算文件摘要
- digestFileHex(Path) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Compute digest of file and return as hex string 计算文件摘要并返回十六进制字符串
- digestHex(byte[]) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Compute digest and return as hex string 计算摘要并返回十六进制字符串
- digestHex(InputStream) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Compute digest of input stream and return as hex string 计算输入流摘要并返回十六进制字符串
- digestHex(String) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Compute digest of string and return as hex string 计算字符串摘要并返回十六进制字符串
- digits() - Method in class cloud.opencode.base.crypto.otp.Totp
-
Returns the number of digits in generated codes.
- digits(int) - Method in class cloud.opencode.base.crypto.otp.Totp.Builder
-
Sets the number of digits in the generated code.
- doFinal() - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- doFinal() - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- doFinal() - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Completes the MAC computation and returns the result 完成 MAC 计算并返回结果
- doFinal() - Method in class cloud.opencode.base.crypto.mac.Poly1305
- doFinal() - Method in class cloud.opencode.base.crypto.OpenDigest
-
Complete computation and return digest 完成计算并返回摘要
- doFinalBase64() - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- doFinalBase64() - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- doFinalBase64() - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Completes the MAC computation and returns as Base64 string 完成 MAC 计算并返回 Base64 字符串
- doFinalBase64() - Method in class cloud.opencode.base.crypto.mac.Poly1305
- doFinalBase64() - Method in class cloud.opencode.base.crypto.OpenDigest
-
Complete computation and return as Base64 string 完成计算并返回 Base64 字符串
- doFinalHex() - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- doFinalHex() - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- doFinalHex() - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Completes the MAC computation and returns as hexadecimal string 完成 MAC 计算并返回十六进制字符串
- doFinalHex() - Method in class cloud.opencode.base.crypto.mac.Poly1305
- doFinalHex() - Method in class cloud.opencode.base.crypto.OpenDigest
-
Complete computation and return as hex string 完成计算并返回十六进制字符串
- doSign() - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- doSign() - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- doSign() - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- doSign() - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- doSign() - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Complete the multi-part signing operation 完成多部分签名操作
- doSign() - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- doSignBase64() - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- doSignBase64() - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- doSignBase64() - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- doSignBase64() - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- doSignBase64() - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Complete the multi-part signing and return Base64 signature 完成多部分签名并返回 Base64 签名
- doSignBase64() - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- doVerify(byte[]) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- doVerify(byte[]) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- doVerify(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- doVerify(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- doVerify(byte[]) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Complete the multi-part verification operation 完成多部分验证操作
- doVerify(byte[]) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- DSA - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.PublicKey
E
- ECB - Enum constant in enum class cloud.opencode.base.crypto.symmetric.CipherMode
-
Deprecated.ECB mode is insecure as it does not hide data patterns. Identical plaintext blocks produce identical ciphertext blocks. Use GCM (recommended), CBC, or CTR mode instead.
- ecc() - Static method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Create ECC cipher (ECIES) 创建 ECC 加密(ECIES)
- EccCipher - Class in cloud.opencode.base.crypto.asymmetric
-
ECC cipher implementation using ECIES (Elliptic Curve Integrated Encryption Scheme) ECC 密码实现(椭圆曲线集成加密方案)
- ECDH - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.PublicKey
- ecdhAes() - Static method in class cloud.opencode.base.crypto.envelope.HybridCrypto
-
Create hybrid crypto with ECDH and AES 创建使用 ECDH 和 AES 的混合加密
- ecdhAesGcm() - Static method in class cloud.opencode.base.crypto.envelope.EnvelopeCrypto
-
Create envelope crypto with ECDH key agreement and AES-GCM.
- EcdhEngine - Class in cloud.opencode.base.crypto.keyexchange
-
ECDH (Elliptic Curve Diffie-Hellman) key exchange engine ECDH 密钥协商引擎 - 椭圆曲线 Diffie-Hellman 密钥交换
- ecdhP256() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
ECDH P-256 key exchange ECDH P-256 密钥协商
- ECDSA - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.PublicKey
- ECDSA_P256_SHA256 - Enum constant in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
ECDSA with P-256 curve and SHA-256
- ECDSA_P384_SHA384 - Enum constant in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
ECDSA with P-384 curve and SHA-384
- ECDSA_P521_SHA512 - Enum constant in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
ECDSA with P-521 curve and SHA-512
- ecdsaP256() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
ECDSA P-256 signer ECDSA P-256 签名
- ecdsaP256() - Static method in class cloud.opencode.base.crypto.OpenSign
-
Create ECDSA P-256 signer 创建 ECDSA P-256 签名器
- ecdsaP384() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
ECDSA P-384 signer ECDSA P-384 签名
- ecdsaP384() - Static method in class cloud.opencode.base.crypto.OpenSign
-
Create ECDSA P-384 signer 创建 ECDSA P-384 签名器
- ecdsaP521() - Static method in class cloud.opencode.base.crypto.OpenSign
-
Create ECDSA P-521 signer 创建 ECDSA P-521 签名器
- EcdsaSignature - Class in cloud.opencode.base.crypto.signature
-
ECDSA signature implementation - Elliptic Curve Digital Signature Algorithm ECDSA 签名实现 - 椭圆曲线数字签名算法
- ed25519() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
Ed25519 signer (recommended) Ed25519 签名(推荐)
- ed25519() - Static method in class cloud.opencode.base.crypto.OpenSign
-
Create Ed25519 signer (recommended) 创建 Ed25519 签名器(推荐)
- ed25519() - Static method in class cloud.opencode.base.crypto.signature.EddsaSignature
-
Create EdDSA signature with Ed25519 curve (recommended for most uses) 创建使用 Ed25519 曲线的 EdDSA 签名(推荐用于大多数场景)
- ED25519 - Enum constant in enum class cloud.opencode.base.crypto.enums.CurveType
-
Ed25519 curve for EdDSA signatures
- ED25519 - Enum constant in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
Ed25519 signature algorithm (Recommended, EdDSA)
- ed25519WithGeneratedKeyPair() - Static method in class cloud.opencode.base.crypto.signature.EddsaSignature
-
Create EdDSA Ed25519 signature with generated key pair 创建带有生成密钥对的 EdDSA Ed25519 签名
- ed448() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
Ed448 signer Ed448 签名
- ed448() - Static method in class cloud.opencode.base.crypto.OpenSign
-
Create Ed448 signer 创建 Ed448 签名器
- ed448() - Static method in class cloud.opencode.base.crypto.signature.EddsaSignature
-
Create EdDSA signature with Ed448 curve (higher security) 创建使用 Ed448 曲线的 EdDSA 签名(更高安全性)
- ED448 - Enum constant in enum class cloud.opencode.base.crypto.enums.CurveType
-
Ed448 curve for EdDSA signatures
- ED448 - Enum constant in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
Ed448 signature algorithm (Recommended, EdDSA)
- ed448WithGeneratedKeyPair() - Static method in class cloud.opencode.base.crypto.signature.EddsaSignature
-
Create EdDSA Ed448 signature with generated key pair 创建带有生成密钥对的 EdDSA Ed448 签名
- EdDSA - Enum constant in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
EdDSA with Ed25519
- EDDSA - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.PublicKey
- EddsaSignature - Class in cloud.opencode.base.crypto.signature
-
EdDSA signature implementation - Edwards-curve Digital Signature Algorithm (recommended) EdDSA 签名实现 - 爱德华兹曲线数字签名算法(推荐)
- ELGAMAL_ENCRYPT - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.PublicKey
- empty() - Static method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Creates empty claims.
- encode(byte[]) - Static method in class cloud.opencode.base.crypto.codec.Base64UrlCodec
-
Encode byte array to Base64URL string with padding 将字节数组编码为带填充的 Base64URL 字符串
- encode(byte[]) - Static method in class cloud.opencode.base.crypto.codec.HexCodec
-
Encode byte array to lowercase hexadecimal string 将字节数组编码为小写十六进制字符串
- encode(String, byte[]) - Static method in class cloud.opencode.base.crypto.codec.PemCodec
-
Encode data to PEM format with custom type 使用自定义类型将数据编码为 PEM 格式
- encodeCertificate(byte[]) - Static method in class cloud.opencode.base.crypto.codec.PemCodec
-
Encode certificate bytes to PEM format 将证书字节编码为 PEM 格式
- encodeNoPadding(byte[]) - Static method in class cloud.opencode.base.crypto.codec.Base64UrlCodec
-
Encode byte array to Base64URL string without padding (standard for JWT) 将字节数组编码为无填充的 Base64URL 字符串(JWT 标准格式)
- encodePrivateKey(byte[]) - Static method in class cloud.opencode.base.crypto.codec.PemCodec
-
Encode private key bytes to PEM format 将私钥字节编码为 PEM 格式
- encodePublicKey(byte[]) - Static method in class cloud.opencode.base.crypto.codec.PemCodec
-
Encode public key bytes to PEM format 将公钥字节编码为 PEM 格式
- encodeUpperCase(byte[]) - Static method in class cloud.opencode.base.crypto.codec.HexCodec
-
Encode byte array to uppercase hexadecimal string 将字节数组编码为大写十六进制字符串
- encrypt(byte[]) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Encrypt data using public key 使用公钥加密数据
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.envelope.EnvelopeCrypto
-
Encrypt plaintext using envelope encryption 使用信封加密加密明文
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.envelope.HybridCrypto
-
Encrypt plaintext using hybrid encryption 使用混合加密加密明文
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Encrypt data with public key 使用公钥加密数据
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Encrypt data 加密数据
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Encrypts data and returns raw bytes.
- encrypt(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Encrypt plaintext bytes.
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- encrypt(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Encrypt plaintext bytes.
- encrypt(byte[]) - Method in class cloud.opencode.base.crypto.versioned.VersionedCipher
-
Encrypts plaintext using the current version cipher.
- encrypt(byte[], byte[]) - Method in class cloud.opencode.base.crypto.envelope.EnvelopeCrypto
-
Encrypt plaintext using envelope encryption with additional authenticated data 使用信封加密加密明文,支持附加认证数据
- encrypt(byte[], PublicKey) - Method in class cloud.opencode.base.crypto.sealedbox.SealedBox
-
Encrypts a message for a recipient.
- encrypt(byte[], SecretKey) - Static method in class cloud.opencode.base.crypto.sealedbox.SecretBox
-
Encrypts a message.
- encrypt(byte[], PGPPublicKey) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Encrypts binary data using the public key.
- encrypt(InputStream, OutputStream) - Method in class cloud.opencode.base.crypto.streaming.StreamingAead
-
Encrypt data from an input stream to an output stream.
- encrypt(String) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Encrypt string using public key 使用公钥加密字符串
- encrypt(String) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- encrypt(String) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- encrypt(String) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- encrypt(String) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- encrypt(String) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Encrypt string (UTF-8) 加密字符串(UTF-8)
- encrypt(String) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Encrypt string (UTF-8) 加密字符串(UTF-8)
- encrypt(String) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Encrypt plaintext string.
- encrypt(String) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- encrypt(String) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- encrypt(String) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- encrypt(String) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- encrypt(String) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Encrypt plaintext string.
- encrypt(String, PgpKeyPair) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Encrypts a message using the key pair's public key.
- encrypt(String, String) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Encrypts a message using the armored public key.
- encrypt(String, SecretKey) - Static method in class cloud.opencode.base.crypto.sealedbox.SecretBox
-
Encrypts a string message.
- encrypt(String, PGPPublicKey) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Encrypts a message using the public key.
- encryptArmored(byte[]) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Encrypts data and returns armored ASCII string.
- encryptArmored(byte[], PGPPublicKey) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Encrypts binary data and returns armored ASCII.
- encryptArmored(String) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Encrypts data and returns armored ASCII string.
- encryptBase64(byte[]) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Encrypt data and return Base64 encoded result 加密数据并返回 Base64 编码结果
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.envelope.EnvelopeCrypto
-
Encrypt plaintext and return Base64 encoded result 加密明文并返回 Base64 编码结果
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.envelope.HybridCrypto
-
Encrypt plaintext and return Base64 encoded result 加密明文并返回 Base64 编码结果
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Encrypt and return as Base64 string 加密并返回 Base64 字符串
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Encrypt and return as Base64 string 加密并返回 Base64 字符串
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Encrypts data and returns Base64 encoded string.
- encryptBase64(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Encrypt and encode as Base64.
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- encryptBase64(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Encrypt and encode as Base64.
- encryptBase64(byte[]) - Method in class cloud.opencode.base.crypto.versioned.VersionedCipher
-
Encrypts plaintext and returns the result as a Base64 string.
- encryptBase64(String) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Encrypt string and return as Base64 string 加密字符串并返回 Base64 字符串
- encryptBase64(String) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Encrypt string and return as Base64 string 加密字符串并返回 Base64 字符串
- encryptBase64(String) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Encrypt string and encode as Base64.
- encryptBase64(String) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- encryptBase64(String) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- encryptBase64(String) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- encryptBase64(String) - Method in class cloud.opencode.base.crypto.versioned.VersionedCipher
-
Encrypts a plaintext string and returns the result as a Base64 string.
- EncryptedEnvelope - Class in cloud.opencode.base.crypto.envelope
-
Encrypted envelope data structure - Contains encrypted key, IV, ciphertext and authentication tag 加密信封数据结构 - 包含加密密钥、初始化向量、密文和认证标签
- EncryptedEnvelope(byte[], byte[], byte[], byte[]) - Constructor for class cloud.opencode.base.crypto.envelope.EncryptedEnvelope
-
Constructs an encrypted envelope with the specified components.
- encryptedKey() - Method in class cloud.opencode.base.crypto.envelope.EncryptedEnvelope
-
Returns the encrypted data encryption key.
- encryptFile(Path, Path) - Method in class cloud.opencode.base.crypto.streaming.StreamingAead
-
Encrypt a file.
- encryptFile(Path, Path) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Encrypt a file.
- encryptFile(Path, Path) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- encryptFile(Path, Path) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- encryptFile(Path, Path) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- encryptHex(byte[]) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Encrypt data and return hexadecimal encoded result 加密数据并返回十六进制编码结果
- encryptHex(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- encryptHex(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- encryptHex(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- encryptHex(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- encryptHex(byte[]) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Encrypt and return as hex string 加密并返回十六进制字符串
- encryptHex(byte[]) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Encrypt and return as hex string 加密并返回十六进制字符串
- encryptHex(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Encrypt and encode as hexadecimal.
- encryptHex(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- encryptHex(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- encryptHex(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- encryptHex(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- encryptHex(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Encrypt and encode as hexadecimal.
- encryptHex(String) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Encrypt string and return as hex string 加密字符串并返回十六进制字符串
- encryptHex(String) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Encrypt string and return as hex string 加密字符串并返回十六进制字符串
- encryptionFailed(String, Throwable) - Static method in exception class cloud.opencode.base.crypto.exception.OpenCryptoException
-
Creates an exception for encryption failures.
- encryptStream(OutputStream) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Create an encrypting output stream.
- encryptStream(OutputStream) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- encryptStream(OutputStream) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- encryptStream(OutputStream) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- encryptWithAad(byte[], SecretKey, byte[]) - Static method in class cloud.opencode.base.crypto.sealedbox.SecretBox
-
Encrypts with additional authenticated data (AAD).
- entropy() - Method in record class cloud.opencode.base.crypto.util.CryptoDetector.CryptoAnalysis
-
Returns the value of the
entropyrecord component. - envelope() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
Envelope encryption (RSA + AES-GCM) 信封加密(RSA + AES-GCM)
- EnvelopeCrypto - Class in cloud.opencode.base.crypto.envelope
-
Envelope encryption implementation - Combines asymmetric and symmetric encryption for secure data encryption 信封加密实现 - 结合非对称和对称加密实现安全的数据加密
- equals(byte[], byte[]) - Static method in class cloud.opencode.base.crypto.util.ConstantTimeUtil
-
Constant-time byte array equality comparison 常量时间字节数组相等性比较
- equals(Object) - Method in class cloud.opencode.base.crypto.envelope.EncryptedEnvelope
- equals(Object) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
- equals(Object) - Method in record class cloud.opencode.base.crypto.jwt.JwtUtil.JwtParts
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.crypto.pgp.PgpKeyPair
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.VersionedKey
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cloud.opencode.base.crypto.util.CryptoDetector.CryptoAnalysis
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class cloud.opencode.base.crypto.util.SecureBytes
-
Constant-time equality comparison using
ConstantTimeUtil. - equals(Object) - Method in record class cloud.opencode.base.crypto.versioned.VersionedPayload
-
Indicates whether some other object is "equal to" this one.
- equals(String, String) - Static method in class cloud.opencode.base.crypto.util.ConstantTimeUtil
-
Constant-time string equality comparison 常量时间字符串相等性比较
- equals(SecretKey, SecretKey) - Static method in class cloud.opencode.base.crypto.key.SecretKeyUtil
-
Check if two secret keys are equal 检查两个对称密钥是否相等
- erase(byte[]) - Static method in class cloud.opencode.base.crypto.util.SecureEraser
-
Securely erase byte array by overwriting with zeros 通过用零覆盖来安全擦除字节数组
- erase(char[]) - Static method in class cloud.opencode.base.crypto.util.SecureEraser
-
Securely erase char array by overwriting with zeros 通过用零覆盖来安全擦除字符数组
- erase(int[]) - Static method in class cloud.opencode.base.crypto.util.SecureEraser
-
Securely erase int array by overwriting with zeros 通过用零覆盖来安全擦除整数数组
- erase(long[]) - Static method in class cloud.opencode.base.crypto.util.SecureEraser
-
Securely erase long array by overwriting with zeros 通过用零覆盖来安全擦除长整数数组
- erase(ByteBuffer) - Static method in class cloud.opencode.base.crypto.util.SecureEraser
-
Securely erase ByteBuffer by overwriting with zeros 通过用零覆盖来安全擦除ByteBuffer
- ES256 - Enum constant in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
ECDSA with P-256 and SHA-256
- ES384 - Enum constant in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
ECDSA with P-384 and SHA-384
- ES512 - Enum constant in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
ECDSA with P-521 and SHA-512
- estimateSecurityStrength(byte[]) - Static method in class cloud.opencode.base.crypto.util.CryptoDetector
-
Estimate the security strength in bits based on entropy.
- expand(byte[], byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Hkdf
-
HKDF-Expand: Expands a pseudorandom key to desired length HKDF-扩展:将伪随机密钥扩展到所需长度
- expiration() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns the expiration time.
- expiration(Instant) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Sets the expiration time.
- expiration(Instant) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets the expiration time.
- EXPIRATION - Static variable in class cloud.opencode.base.crypto.jwt.JwtClaims
- expiresIn(Duration) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Sets the expiration time relative to now.
- expiresIn(Duration) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets the expiration time relative to now.
- exportKeyPairPem(KeyPair) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Export key pair to PEM format 导出密钥对为 PEM 格式
- exportPrivateKey(PrivateKey) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Export private key to byte array 导出私钥为字节数组
- exportPrivateKeyPem(PrivateKey) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Export private key to PEM format 导出私钥为 PEM 格式
- exportPublicKey(PgpKeyPair) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Exports the public key to armored ASCII format.
- exportPublicKey(PublicKey) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Export public key to byte array 导出公钥为字节数组
- exportPublicKey(PGPPublicKey) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Exports the public key to armored ASCII format.
- exportPublicKey(PGPPublicKey) - Static method in class cloud.opencode.base.crypto.pgp.PgpKeyUtil
-
Exports a PGP public key to armored ASCII format.
- exportPublicKeyBytes(PGPPublicKey) - Static method in class cloud.opencode.base.crypto.pgp.PgpKeyUtil
-
Exports a PGP public key to raw bytes.
- exportPublicKeyPem(PublicKey) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Export public key to PEM format 导出公钥为 PEM 格式
- exportSecretKey(PgpKeyPair) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Exports the secret key to armored ASCII format.
- exportSecretKey(PGPSecretKey) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Exports the secret key to armored ASCII format.
- exportSecretKey(PGPSecretKey) - Static method in class cloud.opencode.base.crypto.pgp.PgpKeyUtil
-
Exports a PGP secret key to armored ASCII format.
- extract(byte[], byte[]) - Method in class cloud.opencode.base.crypto.kdf.Hkdf
-
HKDF-Extract: Extracts a pseudorandom key from input key material HKDF-提取:从输入密钥材料中提取伪随机密钥
- extractAndExpand(byte[], byte[], byte[], int) - Method in class cloud.opencode.base.crypto.kdf.Hkdf
-
HKDF-Extract-and-Expand: Combines extract and expand in one call HKDF-提取并扩展:在一次调用中结合提取和扩展
- extractPrivateKey(PGPSecretKey, String) - Static method in class cloud.opencode.base.crypto.pgp.PgpKeyUtil
-
Extracts the private key from a PGP secret key.
- extractPublicKey(PrivateKey) - Static method in class cloud.opencode.base.crypto.key.KeyPairUtil
-
Extract public key from private key (for RSA and EC keys) 从私钥中提取公钥(适用于 RSA 和 EC 密钥)
F
- fingerprintHex(PGPPublicKey) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Returns the key fingerprint in hexadecimal format.
- fingerprintHex(PGPPublicKey) - Static method in class cloud.opencode.base.crypto.pgp.PgpKeyUtil
-
Returns the key fingerprint as hexadecimal string.
- forAes(String, int) - Static method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Creates a key rotation for AES keys.
- forAesGcm() - Static method in class cloud.opencode.base.crypto.random.NonceGenerator
-
Generates a 12-byte (96-bit) random nonce suitable for AES-GCM.
- forAesGcm(SecureRandom) - Static method in class cloud.opencode.base.crypto.random.NonceGenerator
-
Generates a 12-byte (96-bit) random nonce suitable for AES-GCM using the provided SecureRandom.
- forChaCha20() - Static method in class cloud.opencode.base.crypto.random.NonceGenerator
-
Generates a 12-byte (96-bit) random nonce suitable for ChaCha20-Poly1305.
- forChaCha20(SecureRandom) - Static method in class cloud.opencode.base.crypto.random.NonceGenerator
-
Generates a 12-byte (96-bit) random nonce suitable for ChaCha20-Poly1305 using the provided SecureRandom.
- forRsa(String, int) - Static method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Creates a key rotation for RSA key pairs.
- fromBase32(String) - Static method in class cloud.opencode.base.crypto.otp.TotpSecret
-
Decodes a Base32 string to a byte array.
- fromBase64(String) - Static method in class cloud.opencode.base.crypto.envelope.EncryptedEnvelope
-
Deserializes an encrypted envelope from a Base64 encoded string.
- fromBytes(byte[]) - Static method in class cloud.opencode.base.crypto.envelope.EncryptedEnvelope
-
Deserializes an encrypted envelope from a byte array.
- fromBytes(byte[], String) - Static method in class cloud.opencode.base.crypto.key.SecretKeyUtil
-
Create secret key from byte array 从字节数组创建对称密钥
- fromName(String) - Static method in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
Parses algorithm from string name.
- fromPem(String) - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Creates a SSLContext that trusts only a specific PEM-encoded certificate.
- fromSecretKey(PGPSecretKey, String) - Static method in record class cloud.opencode.base.crypto.pgp.PgpKeyPair
-
Creates a PGP key pair from secret key (derives public key automatically).
G
- gcm() - Static method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
-
Create SM4 cipher in GCM mode (AEAD).
- GCM - Enum constant in enum class cloud.opencode.base.crypto.symmetric.CipherMode
-
Galois/Counter Mode - AEAD mode, recommended.
- generate() - Static method in class cloud.opencode.base.crypto.otp.TotpSecret
-
Generates a 20-byte (160-bit) cryptographically secure random secret key.
- generate(byte[]) - Method in class cloud.opencode.base.crypto.otp.Totp
-
Generates a TOTP code for the current time.
- generate(byte[], long) - Method in class cloud.opencode.base.crypto.otp.Hotp
-
Generates a 6-digit one-time password for the given secret and counter.
- generate(byte[], long, int) - Method in class cloud.opencode.base.crypto.otp.Hotp
-
Generates a one-time password with the specified number of digits.
- generate(byte[], Instant) - Method in class cloud.opencode.base.crypto.otp.Totp
-
Generates a TOTP code for the specified time.
- generate(int) - Static method in class cloud.opencode.base.crypto.otp.TotpSecret
-
Generates a cryptographically secure random secret key of the specified length.
- generate(int) - Static method in class cloud.opencode.base.crypto.random.RandomBytes
-
Generates random bytes using the default SecureRandom instance.
- generate(int, SecureRandom) - Static method in class cloud.opencode.base.crypto.random.RandomBytes
-
Generates random bytes using the specified SecureRandom instance.
- generate(String, int) - Static method in class cloud.opencode.base.crypto.key.KeyPairUtil
-
Generate key pair with specified algorithm and key size 使用指定的算法和密钥大小生成密钥对
- generate(String, int) - Static method in class cloud.opencode.base.crypto.key.SecretKeyUtil
-
Generate secret key with specified algorithm and key size 生成指定算法和密钥大小的对称密钥
- generateAes128Key() - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate AES-128 key 生成 AES-128 密钥
- generateAes256Key() - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate AES-256 key 生成 AES-256 密钥
- generateAesKey(int) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate AES key with specified key size 生成指定大小的 AES 密钥
- generateBase64(int) - Static method in class cloud.opencode.base.crypto.random.RandomBytes
-
Generates random bytes and returns them as a Base64 encoded string.
- generateBase64(int, SecureRandom) - Static method in class cloud.opencode.base.crypto.random.RandomBytes
-
Generates random bytes using the specified SecureRandom and returns them as a Base64 encoded string.
- generateBase64Url(int) - Static method in class cloud.opencode.base.crypto.random.RandomBytes
-
Generates random bytes and returns them as a URL-safe Base64 encoded string.
- generateBase64Url(int, SecureRandom) - Static method in class cloud.opencode.base.crypto.random.RandomBytes
-
Generates random bytes using the specified SecureRandom and returns them as a URL-safe Base64 encoded string.
- generateChacha20Key() - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate ChaCha20 key 生成 ChaCha20 密钥
- generateEc(CurveType) - Static method in class cloud.opencode.base.crypto.key.KeyPairUtil
-
Generate elliptic curve key pair with specified curve 使用指定的曲线生成椭圆曲线密钥对
- generateEcKeyPair() - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Generates an EC key pair for JWT signing.
- generateEcKeyPair(CurveType) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate elliptic curve key pair 生成椭圆曲线密钥对
- generateEcKeyPair(String) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Generates an EC key pair with specified curve.
- generateEd25519KeyPair() - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate Ed25519 key pair for EdDSA signatures 生成用于 EdDSA 签名的 Ed25519 密钥对
- generateEd448KeyPair() - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate Ed448 key pair for EdDSA signatures 生成用于 EdDSA 签名的 Ed448 密钥对
- generateHex(int) - Static method in class cloud.opencode.base.crypto.random.RandomBytes
-
Generates random bytes and returns them as a hexadecimal string.
- generateHex(int, SecureRandom) - Static method in class cloud.opencode.base.crypto.random.RandomBytes
-
Generates random bytes using the specified SecureRandom and returns them as a hexadecimal string.
- generateIv() - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Generate random IV 生成随机 IV
- generateIv() - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Generate a random initialization vector.
- generateIv() - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- generateIv() - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- generateIv() - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- generateIv() - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- generateIv() - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Generate a random initialization vector.
- generateJwtId() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Generates a random JWT ID.
- generateJwtId() - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Generates a random JWT ID.
- generateKey() - Static method in class cloud.opencode.base.crypto.sealedbox.SecretBox
-
Generates a new 256-bit secret key.
- generateKey(int) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Generate random key 生成随机密钥
- generateKey(int) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- generateKey(int) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- generateKey(int) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Generate a new secret key.
- generateKeyPair() - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Generate a new key pair for this cipher 为此加密器生成新的密钥对
- generateKeyPair() - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- generateKeyPair() - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- generateKeyPair() - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- generateKeyPair() - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- generateKeyPair() - Method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
- generateKeyPair() - Method in interface cloud.opencode.base.crypto.keyexchange.KeyExchangeEngine
-
Generates a new key pair for the key exchange 为密钥交换生成新的密钥对
- generateKeyPair() - Method in class cloud.opencode.base.crypto.keyexchange.X25519Engine
- generateKeyPair() - Method in class cloud.opencode.base.crypto.keyexchange.X448Engine
- generateKeyPair() - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Generate key pair for this algorithm 生成此算法的密钥对
- generateKeyPair() - Method in class cloud.opencode.base.crypto.OpenSign
-
Generate key pair for this algorithm 生成此算法的密钥对
- generateKeyPair() - Static method in class cloud.opencode.base.crypto.sealedbox.SealedBox
-
Generates a key pair suitable for SealedBox.
- generateKeyPair(String, String) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Generates a new PGP key pair with default 4096-bit RSA.
- generateKeyPair(String, String) - Static method in class cloud.opencode.base.crypto.pgp.PgpKeyUtil
-
Generates a new PGP key pair with RSA algorithm.
- generateKeyPair(String, String, int) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Generates a new PGP key pair with specified key size.
- generateKeyPair(String, String, int) - Static method in class cloud.opencode.base.crypto.pgp.PgpKeyUtil
-
Generates a new PGP key pair with RSA algorithm and specified key size.
- generateNonce() - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Generate a random nonce.
- generateNonce() - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- generateNonce() - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- generateNonce() - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- generateP256KeyPair() - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate P-256 elliptic curve key pair 生成 P-256 椭圆曲线密钥对
- generateP384KeyPair() - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate P-384 elliptic curve key pair 生成 P-384 椭圆曲线密钥对
- generateRsa2048KeyPair() - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate RSA-2048 key pair 生成 RSA-2048 密钥对
- generateRsa4096KeyPair() - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate RSA-4096 key pair 生成 RSA-4096 密钥对
- generateRsaKeyPair() - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Generates an RSA key pair for JWT signing.
- generateRsaKeyPair(int) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate RSA key pair with specified key size 生成指定大小的 RSA 密钥对
- generateRsaKeyPair(int) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Generates an RSA key pair with specified key size.
- generateSalt() - Static method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Generates a cryptographically secure random salt 生成密码学安全的随机盐值
- generateSalt() - Method in class cloud.opencode.base.crypto.kdf.Pbkdf2
-
Generates a cryptographically secure random salt 生成密码学安全的随机盐值
- generateSalt(int) - Static method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Generates a cryptographically secure random salt with custom length 生成自定义长度的密码学安全随机盐值
- generateSalt(int) - Method in class cloud.opencode.base.crypto.kdf.Pbkdf2
-
Generates a cryptographically secure random salt with specified length 生成指定长度的密码学安全的随机盐值
- generateSeed(int) - Static method in class cloud.opencode.base.crypto.random.SecureRandoms
-
Generates random seed bytes using the default SecureRandom.
- generateSm2KeyPair() - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate SM2 key pair (Chinese standard) 生成 SM2 密钥对(中国标准)
- generateSm4Key() - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate SM4 key (Chinese standard) 生成 SM4 密钥(中国标准)
- generateUri(String, String, byte[]) - Static method in class cloud.opencode.base.crypto.otp.Totp
-
Generates an otpauth:// URI with default settings (SHA-1, 6 digits, 30s period).
- generateUri(String, String, byte[], String, int, int) - Static method in class cloud.opencode.base.crypto.otp.Totp
-
Generates an otpauth:// URI with full configuration parameters.
- generateX25519KeyPair() - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Generate X25519 key pair for key exchange 生成用于密钥交换的 X25519 密钥对
- generationFailed(String, Throwable) - Static method in exception class cloud.opencode.base.crypto.exception.OpenKeyException
-
Creates an exception for key generation failures.
- get(String) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns a claim value.
- getAcceptedIssuers() - Method in class cloud.opencode.base.crypto.ssl.TrustAllManager
-
Returns empty accepted issuers.
- getAlgorithm() - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Get the algorithm name 获取算法名称
- getAlgorithm() - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- getAlgorithm() - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- getAlgorithm() - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- getAlgorithm() - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- getAlgorithm() - Method in class cloud.opencode.base.crypto.hash.Blake2Hash
- getAlgorithm() - Method in class cloud.opencode.base.crypto.hash.Blake3Hash
- getAlgorithm() - Method in interface cloud.opencode.base.crypto.hash.HashFunction
-
Get the hash algorithm name 获取哈希算法名称
- getAlgorithm() - Method in class cloud.opencode.base.crypto.hash.HmacFunction
-
Get the HMAC algorithm name 获取 HMAC 算法名称
- getAlgorithm() - Method in class cloud.opencode.base.crypto.hash.Sha2Hash
- getAlgorithm() - Method in class cloud.opencode.base.crypto.hash.Sha3Hash
- getAlgorithm() - Method in class cloud.opencode.base.crypto.hash.Sm3Hash
- getAlgorithm() - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
- getAlgorithm() - Method in class cloud.opencode.base.crypto.kdf.Hkdf
-
Gets the algorithm name 获取算法名称
- getAlgorithm() - Method in interface cloud.opencode.base.crypto.kdf.KdfEngine
-
Returns the algorithm name of this KDF 返回此 KDF 的算法名称
- getAlgorithm() - Method in class cloud.opencode.base.crypto.kdf.Pbkdf2
- getAlgorithm() - Method in class cloud.opencode.base.crypto.kdf.Scrypt
- getAlgorithm() - Method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
- getAlgorithm() - Method in interface cloud.opencode.base.crypto.keyexchange.KeyExchangeEngine
-
Gets the algorithm name of this key exchange engine 获取密钥交换引擎的算法名称
- getAlgorithm() - Method in class cloud.opencode.base.crypto.keyexchange.X25519Engine
- getAlgorithm() - Method in class cloud.opencode.base.crypto.keyexchange.X448Engine
- getAlgorithm() - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- getAlgorithm() - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- getAlgorithm() - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Returns the algorithm name 返回算法名称
- getAlgorithm() - Method in class cloud.opencode.base.crypto.mac.Poly1305
- getAlgorithm() - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Get algorithm name 获取算法名称
- getAlgorithm() - Method in class cloud.opencode.base.crypto.OpenDigest
-
Get algorithm name 获取算法名称
- getAlgorithm() - Method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Get algorithm name 获取算法名称
- getAlgorithm() - Method in class cloud.opencode.base.crypto.OpenSign
-
Get algorithm name 获取算法名称
- getAlgorithm() - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Get algorithm name 获取算法名称
- getAlgorithm() - Method in class cloud.opencode.base.crypto.password.Argon2Hash
- getAlgorithm() - Method in class cloud.opencode.base.crypto.password.BCryptHash
- getAlgorithm() - Method in interface cloud.opencode.base.crypto.password.PasswordHash
-
Get the algorithm name for this password hash implementation 获取此密码哈希实现的算法名称
- getAlgorithm() - Method in class cloud.opencode.base.crypto.password.Pbkdf2Hash
- getAlgorithm() - Method in class cloud.opencode.base.crypto.password.SCryptHash
- getAlgorithm() - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- getAlgorithm() - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- getAlgorithm() - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- getAlgorithm() - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- getAlgorithm() - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Get the signature algorithm name 获取签名算法名称
- getAlgorithm() - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- getAlgorithm() - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Get the algorithm name.
- getAlgorithm() - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- getAlgorithm() - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- getAlgorithm() - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- getAlgorithm() - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- getAlgorithm() - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Get the algorithm name.
- getAlgorithm(Key) - Static method in class cloud.opencode.base.crypto.key.KeyUtil
-
Get key algorithm 获取密钥算法
- getAlgorithmName() - Method in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
Gets the standard algorithm name 获取标准算法名称
- getAlgorithmName() - Method in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
Gets the signature algorithm name 获取签名算法名称
- getAlgorithmName() - Method in enum class cloud.opencode.base.crypto.password.Argon2Type
-
Get the algorithm name for hash encoding 获取用于哈希编码的算法名称
- getAllowedAlgorithms() - Method in class cloud.opencode.base.crypto.policy.CryptoPolicy
-
Returns an unmodifiable set of allowed algorithm names (uppercase).
- getAsymmetricAlgorithm() - Method in class cloud.opencode.base.crypto.envelope.EnvelopeCrypto
-
Get the asymmetric algorithm
- getAsymmetricAlgorithm() - Method in class cloud.opencode.base.crypto.envelope.HybridCrypto
-
Get the asymmetric algorithm 获取非对称算法
- getAvailableAlgorithms(String) - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Get all available algorithms of specified type 获取指定类型的所有可用算法
- getAvailableVersions() - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Gets all available versions.
- getBlockSize() - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- getBlockSize() - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- getBlockSize() - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Get the block size in bytes.
- getBoolean(String) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns a claim value as Boolean.
- getBytes() - Method in class cloud.opencode.base.crypto.util.SecureBytes
-
Return a defensive copy of the internal byte data.
- getBytesUnsafe() - Method in class cloud.opencode.base.crypto.util.SecureBytes
-
Return a direct reference to the internal byte data (hot-path optimization).
- getCertificateIssuer(X509Certificate) - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Gets certificate issuer DN.
- getCertificateSubject(X509Certificate) - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Gets certificate subject DN.
- getCurrentKey() - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Gets the current (latest) key for encryption.
- getCurrentVersion() - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Gets the current version number.
- getCurve() - Method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
-
Gets the curve type used by this engine 获取此引擎使用的曲线类型
- getCurveName() - Method in enum class cloud.opencode.base.crypto.enums.CurveType
-
Gets the standard curve name 获取标准曲线名称
- getCurveType() - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
-
Get the curve type 获取曲线类型
- getCurveType() - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
-
Get the curve type 获取曲线类型
- getDefault() - Static method in class cloud.opencode.base.crypto.random.SecureRandoms
-
Gets the default SecureRandom instance.
- getDefaultContext() - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Gets the default SSLContext.
- getDefaultHostnameVerifier() - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Gets the default hostname verifier.
- getDefaultSaltLength() - Static method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Gets the default salt length 获取默认盐值长度
- getDefaultSocketFactory() - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Gets the default SSLSocketFactory.
- getDeniedAlgorithms() - Method in class cloud.opencode.base.crypto.policy.CryptoPolicy
-
Returns an unmodifiable set of denied algorithm names (uppercase).
- getDigestLength() - Method in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
Gets the digest length in bits 获取摘要长度(位)
- getDigestLength() - Method in class cloud.opencode.base.crypto.hash.Blake2Hash
- getDigestLength() - Method in class cloud.opencode.base.crypto.hash.Blake3Hash
- getDigestLength() - Method in interface cloud.opencode.base.crypto.hash.HashFunction
-
Get the digest length in bytes 获取摘要长度(字节数)
- getDigestLength() - Method in class cloud.opencode.base.crypto.hash.Sha2Hash
- getDigestLength() - Method in class cloud.opencode.base.crypto.hash.Sha3Hash
- getDigestLength() - Method in class cloud.opencode.base.crypto.hash.Sm3Hash
- getDigestLength() - Method in class cloud.opencode.base.crypto.OpenDigest
-
Get digest length in bytes 获取摘要长度(字节)
- getDrbg() - Static method in class cloud.opencode.base.crypto.random.SecureRandoms
-
Gets a DRBG (Deterministic Random Bit Generator) SecureRandom instance with default configuration.
- getDrbg(int, DrbgParameters.Capability, byte[]) - Static method in class cloud.opencode.base.crypto.random.SecureRandoms
-
Gets a DRBG SecureRandom instance with custom configuration.
- getEncoded(Key) - Static method in class cloud.opencode.base.crypto.key.KeyUtil
-
Get encoded key bytes 获取编码的密钥字节
- getFirstViolation() - Method in class cloud.opencode.base.crypto.password.PasswordPolicy.ValidationResult
-
Get first violation message 获取第一条违规消息
- getFormat(Key) - Static method in class cloud.opencode.base.crypto.key.KeyUtil
-
Get key format 获取密钥格式
- getHashLength() - Method in class cloud.opencode.base.crypto.kdf.Hkdf
-
Gets the hash output length 获取哈希输出长度
- getInstance(String) - Static method in class cloud.opencode.base.crypto.random.SecureRandoms
-
Gets a SecureRandom instance for the specified algorithm.
- getInstance(String, String) - Static method in class cloud.opencode.base.crypto.random.SecureRandoms
-
Gets a SecureRandom instance for the specified algorithm and provider.
- getInstant(String) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns a claim value as Instant.
- getInt(String) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns a claim value as Integer.
- getIterations() - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Gets the time cost parameter (iterations) 获取时间成本参数(迭代次数)
- getIterations() - Method in class cloud.opencode.base.crypto.kdf.Pbkdf2
-
Gets the iteration count 获取迭代次数
- getIv() - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
-
Get current IV (returns a defensive copy).
- getIv() - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
-
Get current IV (defensive copy).
- getIv() - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
-
Get current IV.
- getIvLength() - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Get IV length in bytes 获取 IV 长度(字节)
- getIvLength() - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Get the IV/nonce length in bytes.
- getIvLength() - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- getIvLength() - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- getIvLength() - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- getIvLength() - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- getIvLength() - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Get the IV length in bytes.
- getKey() - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
-
Get current key.
- getKey() - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
-
Get current key (defensive copy).
- getKey() - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
-
Get current key.
- getKey() - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
-
Get current key.
- getKeyAlgorithm() - Method in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
Gets the key algorithm type 获取密钥算法类型
- getKeyByVersion(long) - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Gets a key by its version number.
- getKeyId() - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Gets the key ID.
- getKeyPair(String, char[]) - Method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Get key pair from key store 从密钥存储中获取密钥对
- getKeySize() - Method in enum class cloud.opencode.base.crypto.enums.CurveType
-
Gets the key size in bits 获取密钥大小(位)
- getKeySize() - Method in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
Gets the key size in bits 获取密钥大小(位)
- getKeySize(Key) - Static method in class cloud.opencode.base.crypto.key.KeyUtil
-
Get key size in bits 获取密钥大小(位)
- getList(String) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns a claim value as List.
- getLong(String) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns a claim value as Long.
- getMacLength() - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- getMacLength() - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- getMacLength() - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Returns the MAC length in bytes 返回 MAC 长度(字节数)
- getMacLength() - Method in class cloud.opencode.base.crypto.mac.Poly1305
- getMaxEncryptSize() - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Get maximum size of data that can be encrypted in a single operation 获取单次操作可加密的最大数据大小
- getMaxEncryptSize() - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- getMaxEncryptSize() - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- getMaxEncryptSize() - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- getMaxEncryptSize() - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- getMaxEncryptSize() - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Get maximum encrypt size in bytes 获取最大加密大小(字节)
- getMaxLength() - Method in class cloud.opencode.base.crypto.password.PasswordPolicy
-
Get maximum length 获取最大长度
- getMemory() - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Gets the memory cost parameter in KB 获取内存成本参数(KB)
- getMinKeyBits() - Method in class cloud.opencode.base.crypto.policy.CryptoPolicy
-
Returns an unmodifiable map of minimum key size requirements (uppercase algorithm name to bits).
- getMinKeySize() - Method in enum class cloud.opencode.base.crypto.enums.AsymmetricAlgorithm
-
Gets the minimum recommended key size in bits 获取最小推荐密钥大小(位)
- getMinLength() - Method in class cloud.opencode.base.crypto.password.PasswordPolicy
-
Get minimum length 获取最小长度
- getMinMemory() - Static method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Gets the minimum memory requirement in KB 获取最小内存需求(KB)
- getN() - Method in class cloud.opencode.base.crypto.kdf.Scrypt
-
Gets the CPU/memory cost parameter 获取 CPU/内存成本参数
- getName() - Method in enum class cloud.opencode.base.crypto.enums.PasswordHashAlgorithm
-
Gets the algorithm name 获取算法名称
- getNonce() - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
-
Get current nonce (returns a defensive copy).
- getNonceLength() - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
-
Get nonce length in bytes.
- getOwaspIterations() - Static method in class cloud.opencode.base.crypto.kdf.Pbkdf2
-
Gets the OWASP recommended iteration count for PBKDF2-HMAC-SHA256 获取 OWASP 推荐的 PBKDF2-HMAC-SHA256 迭代次数
- getOwaspSha512Iterations() - Static method in class cloud.opencode.base.crypto.kdf.Pbkdf2
-
Gets the OWASP recommended iteration count for PBKDF2-HMAC-SHA512 获取 OWASP 推荐的 PBKDF2-HMAC-SHA512 迭代次数
- getP() - Method in class cloud.opencode.base.crypto.kdf.Scrypt
-
Gets the parallelization parameter 获取并行化参数
- getParallelism() - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Gets the parallelism parameter 获取并行度参数
- getPrivateKey() - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
-
Get the private key 获取私钥
- getPrivateKey() - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
-
Get the private key 获取私钥
- getPrivateKey() - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
-
Get the private key 获取私钥
- getPrivateKey() - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
-
Get the private key 获取私钥
- getPrivateKey() - Method in class cloud.opencode.base.crypto.keyexchange.X25519Engine
-
Gets the private key if set 获取已设置的私钥
- getPrivateKey() - Method in class cloud.opencode.base.crypto.keyexchange.X448Engine
-
Gets the private key if set 获取已设置的私钥
- getPrivateKey() - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
-
Get the private key 获取私钥
- getPrivateKey() - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
-
Get the private key 获取私钥
- getPrivateKey() - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
-
Get the private key 获取私钥
- getPrivateKey() - Method in class cloud.opencode.base.crypto.signature.RsaSignature
-
Get the private key 获取私钥
- getPrivateKey(String, char[]) - Method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Get private key from key store 从密钥存储中获取私钥
- getPublicKey() - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
-
Get the public key 获取公钥
- getPublicKey() - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
-
Get the public key 获取公钥
- getPublicKey() - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
-
Get the public key 获取公钥
- getPublicKey() - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
-
Get the public key 获取公钥
- getPublicKey() - Method in class cloud.opencode.base.crypto.keyexchange.X25519Engine
-
Gets the public key from the private key (if set).
- getPublicKey() - Method in class cloud.opencode.base.crypto.keyexchange.X448Engine
-
Gets the public key from the private key (if set).
- getPublicKey() - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Returns the configured public key.
- getPublicKey() - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
-
Get the public key 获取公钥
- getPublicKey() - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
-
Get the public key 获取公钥
- getPublicKey() - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
-
Get the public key 获取公钥
- getPublicKey() - Method in class cloud.opencode.base.crypto.signature.RsaSignature
-
Get the public key 获取公钥
- getPublicKey(String) - Method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Get public key from key store 从密钥存储中获取公钥
- getR() - Method in class cloud.opencode.base.crypto.kdf.Scrypt
-
Gets the block size parameter 获取块大小参数
- getSecretKey() - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Returns the configured secret key.
- getSecretKey(String, char[]) - Method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Get secret key from key store 从密钥存储中获取对称密钥
- getSecureRandom() - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Get a thread-safe SecureRandom instance 获取线程安全的SecureRandom实例
- getServerCertificates(String, int) - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Gets server certificates from a URL.
- getString(String) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns a claim value as String.
- getStrong() - Static method in class cloud.opencode.base.crypto.random.SecureRandoms
-
Gets a strong SecureRandom instance using the strongest available algorithm.
- getSupportedCipherSuites() - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Gets supported cipher suites.
- getSupportedProtocols() - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Gets supported SSL protocols.
- getSymmetricAlgorithm() - Method in class cloud.opencode.base.crypto.envelope.EnvelopeCrypto
-
Get the symmetric algorithm
- getSymmetricAlgorithm() - Method in class cloud.opencode.base.crypto.envelope.HybridCrypto
-
Get the symmetric algorithm 获取对称算法
- getSymmetricAlgorithm() - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Returns the symmetric algorithm.
- getTagLength() - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
-
Get authentication tag length in bits.
- getTagLength() - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
-
Get authentication tag length in bits.
- getTimeUntilNextRotation() - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Gets the time until next rotation.
- getTransformation() - Method in enum class cloud.opencode.base.crypto.enums.AsymmetricAlgorithm
-
Gets the cipher transformation string 获取密码转换字符串
- getTransformation() - Method in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
Gets the cipher transformation string 获取密码转换字符串
- getTrustAllHostnameVerifier() - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Gets a hostname verifier that accepts all hostnames.
- getType() - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Gets the Argon2 variant type 获取 Argon2 变体类型
- getType(String) - Static method in class cloud.opencode.base.crypto.codec.PemCodec
-
Get PEM type identifier from PEM string 从 PEM 字符串获取类型标识符
- getTypeId() - Method in enum class cloud.opencode.base.crypto.password.Argon2Type
-
Get the type identifier used by Bouncy Castle 获取 Bouncy Castle 使用的类型标识符
- getValue() - Method in enum class cloud.opencode.base.crypto.symmetric.Padding
-
Get the JCE padding scheme name.
- getViolatedAlgorithm() - Method in exception class cloud.opencode.base.crypto.policy.PolicyViolationException
-
Returns the algorithm that violated the policy.
- getViolations() - Method in class cloud.opencode.base.crypto.password.PasswordPolicy.ValidationResult
-
Get list of violations 获取违规列表
- gracePeriod(Duration) - Method in class cloud.opencode.base.crypto.rotation.KeyRotation.Builder
H
- hash(byte[]) - Method in class cloud.opencode.base.crypto.hash.Blake2Hash
- hash(byte[]) - Method in class cloud.opencode.base.crypto.hash.Blake3Hash
- hash(byte[]) - Method in interface cloud.opencode.base.crypto.hash.HashFunction
-
Compute hash of byte array 计算字节数组的哈希值
- hash(byte[]) - Method in class cloud.opencode.base.crypto.hash.Sha2Hash
- hash(byte[]) - Method in class cloud.opencode.base.crypto.hash.Sha3Hash
- hash(byte[]) - Method in class cloud.opencode.base.crypto.hash.Sm3Hash
- hash(char[]) - Method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Hash password from char array (more secure) 从字符数组哈希密码(更安全)
- hash(char[]) - Method in class cloud.opencode.base.crypto.password.Argon2Hash
- hash(char[]) - Method in class cloud.opencode.base.crypto.password.BCryptHash
- hash(char[]) - Method in interface cloud.opencode.base.crypto.password.PasswordHash
-
Hash a password from a character array 从字符数组哈希密码
- hash(char[]) - Method in class cloud.opencode.base.crypto.password.Pbkdf2Hash
- hash(char[]) - Method in class cloud.opencode.base.crypto.password.SCryptHash
- hash(String) - Method in class cloud.opencode.base.crypto.hash.Blake2Hash
- hash(String) - Method in class cloud.opencode.base.crypto.hash.Blake3Hash
- hash(String) - Method in interface cloud.opencode.base.crypto.hash.HashFunction
-
Compute hash of string (UTF-8 encoded) 计算字符串的哈希值(使用 UTF-8 编码)
- hash(String) - Method in class cloud.opencode.base.crypto.hash.Sha2Hash
- hash(String) - Method in class cloud.opencode.base.crypto.hash.Sha3Hash
- hash(String) - Method in class cloud.opencode.base.crypto.hash.Sm3Hash
- hash(String) - Method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Hash password 哈希密码
- hash(String) - Method in class cloud.opencode.base.crypto.password.Argon2Hash
- hash(String) - Method in class cloud.opencode.base.crypto.password.BCryptHash
- hash(String) - Method in interface cloud.opencode.base.crypto.password.PasswordHash
-
Hash a password from a string 从字符串哈希密码
- hash(String) - Method in class cloud.opencode.base.crypto.password.Pbkdf2Hash
- hash(String) - Method in class cloud.opencode.base.crypto.password.SCryptHash
- hashBase64(byte[]) - Method in class cloud.opencode.base.crypto.hash.Blake2Hash
- hashBase64(byte[]) - Method in class cloud.opencode.base.crypto.hash.Blake3Hash
- hashBase64(byte[]) - Method in interface cloud.opencode.base.crypto.hash.HashFunction
-
Compute hash and return as Base64 string 计算哈希值并返回 Base64 字符串
- hashBase64(byte[]) - Method in class cloud.opencode.base.crypto.hash.Sha2Hash
- hashBase64(byte[]) - Method in class cloud.opencode.base.crypto.hash.Sha3Hash
- hashBase64(byte[]) - Method in class cloud.opencode.base.crypto.hash.Sm3Hash
- hashCode() - Method in class cloud.opencode.base.crypto.envelope.EncryptedEnvelope
- hashCode() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
- hashCode() - Method in record class cloud.opencode.base.crypto.jwt.JwtUtil.JwtParts
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.crypto.pgp.PgpKeyPair
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.VersionedKey
-
Returns a hash code value for this object.
- hashCode() - Method in record class cloud.opencode.base.crypto.util.CryptoDetector.CryptoAnalysis
-
Returns a hash code value for this object.
- hashCode() - Method in class cloud.opencode.base.crypto.util.SecureBytes
-
Returns a constant hash code to prevent leaking key content via hash-based data structures.
- hashCode() - Method in record class cloud.opencode.base.crypto.versioned.VersionedPayload
-
Returns a hash code value for this object.
- HashFunction - Interface in cloud.opencode.base.crypto.hash
-
Hash function interface for cryptographic hash operations - Provides unified API for various hash algorithms 哈希函数接口 - 为各种哈希算法提供统一的 API
- hashHex(byte[]) - Method in class cloud.opencode.base.crypto.hash.Blake2Hash
- hashHex(byte[]) - Method in class cloud.opencode.base.crypto.hash.Blake3Hash
- hashHex(byte[]) - Method in interface cloud.opencode.base.crypto.hash.HashFunction
-
Compute hash and return as hexadecimal string 计算哈希值并返回十六进制字符串
- hashHex(byte[]) - Method in class cloud.opencode.base.crypto.hash.Sha2Hash
- hashHex(byte[]) - Method in class cloud.opencode.base.crypto.hash.Sha3Hash
- hashHex(byte[]) - Method in class cloud.opencode.base.crypto.hash.Sm3Hash
- hashHex(String) - Method in class cloud.opencode.base.crypto.hash.Blake2Hash
- hashHex(String) - Method in class cloud.opencode.base.crypto.hash.Blake3Hash
- hashHex(String) - Method in interface cloud.opencode.base.crypto.hash.HashFunction
-
Compute hash of string and return as hexadecimal string 计算字符串哈希值并返回十六进制字符串
- hashHex(String) - Method in class cloud.opencode.base.crypto.hash.Sha2Hash
- hashHex(String) - Method in class cloud.opencode.base.crypto.hash.Sha3Hash
- hashHex(String) - Method in class cloud.opencode.base.crypto.hash.Sm3Hash
- hashLength(int) - Method in class cloud.opencode.base.crypto.password.Argon2Hash.Builder
-
Set the hash output length in bytes 设置哈希输出长度(字节)
- hasSignificantTextContent(byte[]) - Static method in class cloud.opencode.base.crypto.util.CryptoDetector
-
Check if data contains significant readable text content.
- hasTextContent() - Method in record class cloud.opencode.base.crypto.util.CryptoDetector.CryptoAnalysis
-
Returns the value of the
hasTextContentrecord component. - hasUniformByteDistribution(byte[], double) - Static method in class cloud.opencode.base.crypto.util.CryptoDetector
-
Check if byte distribution is approximately uniform.
- header() - Method in record class cloud.opencode.base.crypto.jwt.JwtUtil.JwtParts
-
Returns the value of the
headerrecord component. - header(String, Object) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Adds a header claim.
- HEX - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.EncodingType
-
Hexadecimal encoding | 十六进制编码
- HexCodec - Class in cloud.opencode.base.crypto.codec
-
Hexadecimal encoding and decoding utility - Convert between byte arrays and hex strings 十六进制编解码工具类 - 字节数组与十六进制字符串相互转换
- hkdf() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
HKDF-SHA256 HKDF-SHA256
- Hkdf - Class in cloud.opencode.base.crypto.kdf
-
HMAC-based Key Derivation Function (HKDF) implementation - RFC 5869 compliant KDF using HMAC 基于 HMAC 的密钥派生函数实现 - 符合 RFC 5869 标准的 KDF,使用 HMAC
- HmacFunction - Class in cloud.opencode.base.crypto.hash
-
HMAC (Hash-based Message Authentication Code) function implementation - Keyed hash for message authentication HMAC(基于哈希的消息认证码)函数实现 - 用于消息认证的密钥哈希
- hmacSha256(byte[]) - Static method in class cloud.opencode.base.crypto.hash.HmacFunction
-
Create HMAC-SHA256 function 创建 HMAC-SHA256 函数
- hmacSha256(byte[]) - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
HMAC-SHA256 HMAC-SHA256
- hmacSha256(int) - Static method in class cloud.opencode.base.crypto.kdf.Pbkdf2
-
Creates PBKDF2 instance using HMAC-SHA256 with specified iterations 创建使用 HMAC-SHA256 和指定迭代次数的 PBKDF2 实例
- HmacSha256 - Class in cloud.opencode.base.crypto.mac
-
HMAC-SHA256 implementation - Hash-based Message Authentication Code using SHA-256 HMAC-SHA256 实现 - 基于 SHA-256 的哈希消息认证码
- hmacSha384(byte[]) - Static method in class cloud.opencode.base.crypto.hash.HmacFunction
-
Create HMAC-SHA384 function 创建 HMAC-SHA384 函数
- hmacSha512(byte[]) - Static method in class cloud.opencode.base.crypto.hash.HmacFunction
-
Create HMAC-SHA512 function 创建 HMAC-SHA512 函数
- hmacSha512(byte[]) - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
HMAC-SHA512 HMAC-SHA512
- hmacSha512(int) - Static method in class cloud.opencode.base.crypto.kdf.Pbkdf2
-
Creates PBKDF2 instance using HMAC-SHA512 with specified iterations 创建使用 HMAC-SHA512 和指定迭代次数的 PBKDF2 实例
- HmacSha512 - Class in cloud.opencode.base.crypto.mac
-
HMAC-SHA512 implementation - Hash-based Message Authentication Code using SHA-512 HMAC-SHA512 实现 - 基于 SHA-512 的哈希消息认证码
- Hotp - Class in cloud.opencode.base.crypto.otp
-
RFC 4226 HOTP (HMAC-Based One-Time Password) implementation RFC 4226 HOTP(基于 HMAC 的一次性密码)实现
- HS256 - Enum constant in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
HMAC with SHA-256
- HS384 - Enum constant in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
HMAC with SHA-384
- HS512 - Enum constant in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
HMAC with SHA-512
- hybrid() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
Hybrid encryption (public key encrypts symmetric key) 混合加密(公钥加密对称密钥)
- hybrid(int) - Static method in class cloud.opencode.base.crypto.random.NonceGenerator
-
Generates a hybrid nonce combining timestamp with random bytes.
- hybrid(int, SecureRandom) - Static method in class cloud.opencode.base.crypto.random.NonceGenerator
-
Generates a hybrid nonce combining timestamp with random bytes.
- HybridCrypto - Class in cloud.opencode.base.crypto.envelope
-
Hybrid encryption implementation - Simplified envelope encryption with transparent format 混合加密实现 - 简化的信封加密,格式透明
- HybridCrypto.Builder - Class in cloud.opencode.base.crypto.envelope
-
Builder for creating custom HybridCrypto instances 用于创建自定义 HybridCrypto 实例的构建器
I
- importKey(long, K, Instant) - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Imports a key with a specific version.
- importKeyPair(String, String) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Imports a key pair from armored ASCII format.
- importKeyPair(String, String) - Static method in class cloud.opencode.base.crypto.pgp.PgpKeyUtil
-
Imports a PGP key pair from armored ASCII format.
- importKeyPairPem(String, String) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Import key pair from PEM format 从 PEM 格式导入密钥对
- importPrivateKey(byte[], String) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Import private key from byte array 从字节数组导入私钥
- importPrivateKeyPem(String) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Import private key from PEM format 从 PEM 格式导入私钥
- importPublicKey(byte[]) - Static method in class cloud.opencode.base.crypto.pgp.PgpKeyUtil
-
Imports a PGP public key from byte array.
- importPublicKey(byte[], String) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Import public key from byte array 从字节数组导入公钥
- importPublicKey(String) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Imports a public key from armored ASCII format.
- importPublicKey(String) - Static method in class cloud.opencode.base.crypto.pgp.PgpKeyUtil
-
Imports a PGP public key from armored ASCII format.
- importPublicKeyPem(String) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Import public key from PEM format 从 PEM 格式导入公钥
- importSecretKey(String, String) - Static method in class cloud.opencode.base.crypto.pgp.PgpKeyUtil
-
Imports a PGP secret key from armored ASCII format.
- initialKey(K) - Method in class cloud.opencode.base.crypto.rotation.KeyRotation.Builder
- INSTANCE - Static variable in class cloud.opencode.base.crypto.ssl.TrustAllManager
-
Singleton instance.
- insufficientStrength(String, int, int) - Static method in exception class cloud.opencode.base.crypto.exception.OpenKeyException
-
Creates an exception for insufficient key strength.
- intToBytes(int) - Static method in class cloud.opencode.base.crypto.util.ByteUtil
-
Convert int to byte array (big-endian) 将int转换为字节数组(大端序)
- invalidFormat(String, String) - Static method in exception class cloud.opencode.base.crypto.exception.OpenKeyException
-
Creates an exception for invalid key format.
- invalidFormat(String, String) - Static method in exception class cloud.opencode.base.crypto.exception.OpenSignatureException
-
Creates an exception for invalid signature format.
- invalidIv(String, int, int) - Static method in exception class cloud.opencode.base.crypto.exception.OpenCryptoException
-
Creates an exception for invalid initialization vector (IV).
- invalidSignature(String) - Static method in exception class cloud.opencode.base.crypto.exception.OpenSignatureException
-
Creates an exception for invalid signatures.
- isAead() - Method in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
Checks if this is an AEAD algorithm 检查是否为 AEAD 算法
- isAlgorithmAvailable(String) - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Check if cryptographic algorithm is available 检查加密算法是否可用
- isAllowed(String, int) - Method in class cloud.opencode.base.crypto.policy.CryptoPolicy
-
Returns whether the given algorithm with key size is allowed by this policy.
- isAsymmetric() - Method in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
Checks if this is an asymmetric algorithm.
- isAvailable() - Static method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
-
Check if SM2 is available (i.e., Bouncy Castle is present) 检查 SM2 是否可用(即 Bouncy Castle 是否存在)
- isBouncyCastleAvailable() - Static method in class cloud.opencode.base.crypto.kdf.Argon2Kdf
-
Check if Bouncy Castle provider is available.
- isBouncyCastleAvailable() - Static method in class cloud.opencode.base.crypto.signature.Sm2Signature
-
Check if Bouncy Castle provider is available.
- isBouncyCastleAvailable() - Static method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
-
Check if Bouncy Castle provider is available.
- isClosed() - Method in class cloud.opencode.base.crypto.util.SecureBytes
-
Check whether this SecureBytes has been closed.
- isCryptographic() - Method in record class cloud.opencode.base.crypto.util.CryptoDetector.CryptoAnalysis
-
Returns true if the data appears to be cryptographic in nature.
- isExpired() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Checks if the token has expired.
- isKeyPairStrengthSufficient(KeyPair, int) - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Check if key pair has sufficient strength 检查密钥对是否具有足够的强度
- isKeyStrengthSufficient(SecretKey, int) - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Check if secret key has sufficient strength 检查密钥是否具有足够的强度
- isMatchingPair(PublicKey, PrivateKey) - Static method in class cloud.opencode.base.crypto.key.KeyPairUtil
-
Check if public and private keys form a matching pair 检查公钥和私钥是否匹配
- isNotYetValid() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Checks if the token is not yet valid.
- ISO10126 - Enum constant in enum class cloud.opencode.base.crypto.symmetric.Padding
-
ISO 10126 padding scheme.
- isPrivateKey(Key) - Static method in class cloud.opencode.base.crypto.key.KeyUtil
-
Check if key is a private key 检查密钥是否为私钥
- isPublicKey(Key) - Static method in class cloud.opencode.base.crypto.key.KeyUtil
-
Check if key is a public key 检查密钥是否为公钥
- isRecommended() - Method in enum class cloud.opencode.base.crypto.enums.AsymmetricAlgorithm
-
Checks if this algorithm is recommended for use 检查算法是否推荐使用
- isRecommended() - Method in enum class cloud.opencode.base.crypto.enums.PasswordHashAlgorithm
-
Checks if this algorithm is recommended for use 检查算法是否推荐使用
- isRecommended() - Method in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
Checks if this algorithm is recommended for use 检查算法是否推荐使用
- isRecommended() - Method in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
Checks if this algorithm is recommended for use 检查算法是否推荐使用
- isRotationNeeded() - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Checks if a rotation is needed based on the interval.
- isSecretKey(Key) - Static method in class cloud.opencode.base.crypto.key.KeyUtil
-
Check if key is a secret key 检查密钥是否为对称密钥
- isSecure() - Method in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
Checks if the algorithm is considered secure 检查算法是否被认为是安全的
- ISSUED_AT - Static variable in class cloud.opencode.base.crypto.jwt.JwtClaims
- issuedAt() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns the issued-at time.
- issuedAt(Instant) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Sets the issued-at time.
- issuedAt(Instant) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets the issued-at time.
- issuedAtNow() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Sets the issued-at time to now.
- issuedAtNow() - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets the issued-at time to now.
- issuer() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns the issuer claim.
- issuer(String) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Sets the issuer claim.
- issuer(String) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets the issuer claim.
- ISSUER - Static variable in class cloud.opencode.base.crypto.jwt.JwtClaims
- isSymmetric() - Method in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
Checks if this is a symmetric algorithm.
- isTls13Supported() - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Checks if TLS 1.3 is supported.
- isValid() - Method in class cloud.opencode.base.crypto.password.PasswordPolicy.ValidationResult
-
Check if password is valid 检查密码是否有效
- isValid(String) - Method in class cloud.opencode.base.crypto.password.PasswordPolicy
-
Check if password is valid 检查密码是否有效
- isValidHex(String) - Static method in class cloud.opencode.base.crypto.codec.HexCodec
-
Check if string is valid hexadecimal format 检查字符串是否为有效的十六进制格式
- iterations(int) - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf.Builder
-
Sets the number of iterations 设置迭代次数
- iterations(int) - Method in class cloud.opencode.base.crypto.password.Argon2Hash.Builder
-
Set the number of iterations (time cost) 设置迭代次数(时间成本)
- iterations(int) - Method in class cloud.opencode.base.crypto.password.Pbkdf2Hash.Builder
-
Set the number of iterations 设置迭代次数
- iv() - Method in class cloud.opencode.base.crypto.envelope.EncryptedEnvelope
-
Returns the initialization vector.
J
- jcaName() - Method in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
Returns the JCA algorithm name.
- JWK - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
JWK (JSON Web Key) | JWK (JSON Web Key)
- JWT_ID - Static variable in class cloud.opencode.base.crypto.jwt.JwtClaims
- JwtAlgorithm - Enum Class in cloud.opencode.base.crypto.jwt
-
JWT Algorithm - Supported algorithms for JWT signing JWT 算法 - 支持的 JWT 签名算法
- JwtClaims - Class in cloud.opencode.base.crypto.jwt
-
JWT Claims - Container for JWT claims (payload) JWT 声明 - JWT 声明(载荷)容器
- JwtClaims.Builder - Class in cloud.opencode.base.crypto.jwt
-
Builder for JwtClaims.
- jwtId() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns the JWT ID.
- jwtId(String) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Sets the JWT ID.
- JwtParts(JwtAlgorithm, Map, JwtClaims, byte[], String) - Constructor for record class cloud.opencode.base.crypto.jwt.JwtUtil.JwtParts
-
Creates an instance of a
JwtPartsrecord class. - JwtUtil - Class in cloud.opencode.base.crypto.jwt
-
JWT Utility - Creates and verifies JSON Web Tokens JWT 工具类 - 创建和验证 JSON Web Token
- JwtUtil.Builder - Class in cloud.opencode.base.crypto.jwt
-
JWT Builder - Fluent builder for creating JWTs JWT 构建器 - 用于创建 JWT 的流式构建器
- JwtUtil.JwtParts - Record Class in cloud.opencode.base.crypto.jwt
-
JWT Parts - Holds parsed JWT components JWT 部分 - 保存解析后的 JWT 组件
K
- KdfEngine - Interface in cloud.opencode.base.crypto.kdf
-
Key Derivation Function (KDF) engine interface - Provides unified API for various KDF algorithms 密钥派生函数引擎接口 - 为各种 KDF 算法提供统一的 API
- key() - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.VersionedKey
-
Returns the value of the
keyrecord component. - KEY_DELETED - Enum constant in enum class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent.Type
- KEY_DEPRECATED - Enum constant in enum class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent.Type
- KEY_RETIRED - Enum constant in enum class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent.Type
- KEY_ROTATED - Enum constant in enum class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent.Type
- KeyExchangeEngine - Interface in cloud.opencode.base.crypto.keyexchange
-
Key exchange engine interface for various key agreement protocols 密钥协商引擎接口 - 支持各种密钥协商协议
- keyFromBytes(byte[]) - Static method in class cloud.opencode.base.crypto.sealedbox.SecretBox
-
Creates a secret key from raw bytes.
- keyGenerator(Supplier) - Method in class cloud.opencode.base.crypto.rotation.KeyRotation.Builder
- KeyGenerator - Class in cloud.opencode.base.crypto.key
-
Key generator utility for symmetric and asymmetric keys - Generate cryptographic keys 密钥生成器工具类 - 生成对称和非对称密钥
- keyId() - Method in record class cloud.opencode.base.crypto.pgp.PgpKeyPair
-
Returns the value of the
keyIdrecord component. - keyId() - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent
-
Returns the value of the
keyIdrecord component. - keyId() - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.VersionedKey
-
Returns the value of the
keyIdrecord component. - keyId(String) - Method in class cloud.opencode.base.crypto.rotation.KeyRotation.Builder
- keyIdHex() - Method in record class cloud.opencode.base.crypto.pgp.PgpKeyPair
-
Returns the key ID as hexadecimal string.
- keyIdHex(PGPPublicKey) - Static method in class cloud.opencode.base.crypto.OpenPgp
-
Returns the key ID in hexadecimal format.
- keyIdHex(PGPPublicKey) - Static method in class cloud.opencode.base.crypto.pgp.PgpKeyUtil
-
Returns the key ID as hexadecimal string.
- keyLength(int) - Method in class cloud.opencode.base.crypto.password.Pbkdf2Hash.Builder
-
Set the key output length in bits 设置密钥输出长度(位)
- keyLength(int) - Method in class cloud.opencode.base.crypto.password.SCryptHash.Builder
-
Set key output length in bytes 设置密钥输出长度(字节)
- keyManagers(KeyManager...) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Sets key managers.
- keyNotSet(String) - Static method in exception class cloud.opencode.base.crypto.exception.OpenKeyException
-
Creates an exception for when a required key is not set.
- KeyPairUtil - Class in cloud.opencode.base.crypto.key
-
Key pair utility class - Utility methods for working with asymmetric key pairs 密钥对工具类 - 用于处理非对称密钥对的实用方法
- KeyRotation<K> - Class in cloud.opencode.base.crypto.rotation
-
Key Rotation Manager - Automated key version management and rotation 密钥轮换管理器 - 自动化密钥版本管理和轮换
- KeyRotation.Builder<K> - Class in cloud.opencode.base.crypto.rotation
-
Builder for KeyRotation.
- KeyRotation.KeyStatus - Enum Class in cloud.opencode.base.crypto.rotation
-
Status of a key version.
- KeyRotation.RotationEvent - Record Class in cloud.opencode.base.crypto.rotation
-
Event triggered during key rotation.
- KeyRotation.RotationEvent.Type - Enum Class in cloud.opencode.base.crypto.rotation
- KeyRotation.VersionedKey<K> - Record Class in cloud.opencode.base.crypto.rotation
-
A versioned key with metadata.
- keySize() - Method in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Symmetric
- keySize(int) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher.Builder
-
Set key size in bits.
- keySize(int) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher.Builder
-
Set key size in bits.
- keyStore(InputStream, String) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Loads keystore from input stream.
- keyStore(InputStream, String, String) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Loads keystore from input stream with type.
- keyStore(Path, String) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Loads keystore from file.
- keyStore(Path, String, String) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Loads keystore from file with type.
- keyType() - Method in exception class cloud.opencode.base.crypto.exception.OpenKeyException
-
Returns the key type associated with this exception.
- KeyUtil - Class in cloud.opencode.base.crypto.key
-
Key utility class for key operations and queries - Utility methods for working with cryptographic keys 密钥工具类 - 密钥操作和查询的实用方法
L
- label(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher.Builder
-
Set the label for OAEP (optional) 设置 OAEP 的标签(可选)
- legacy() - Static method in class cloud.opencode.base.crypto.policy.CryptoPolicy
-
Returns a legacy policy allowing older algorithms for backward compatibility.
- length() - Method in class cloud.opencode.base.crypto.util.SecureBytes
-
Return the length of the byte data.
- load(Path, char[]) - Static method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Load key store from file 从文件加载密钥存储
- longToBytes(long) - Static method in class cloud.opencode.base.crypto.util.ByteUtil
-
Convert long to byte array (big-endian) 将long转换为字节数组(大端序)
- looksCompressed() - Method in record class cloud.opencode.base.crypto.util.CryptoDetector.CryptoAnalysis
-
Returns the value of the
looksCompressedrecord component. - looksEncrypted() - Method in record class cloud.opencode.base.crypto.util.CryptoDetector.CryptoAnalysis
-
Returns the value of the
looksEncryptedrecord component. - looksEncrypted(byte[]) - Static method in class cloud.opencode.base.crypto.util.CryptoDetector
-
Heuristically determine if data appears to be encrypted.
- looksLikeSecret(String) - Static method in class cloud.opencode.base.crypto.util.CryptoDetector
-
Check if a string looks like a cryptographic key or secret.
M
- mac(byte[]) - Method in class cloud.opencode.base.crypto.hash.HmacFunction
-
Compute MAC (Message Authentication Code) of byte array 计算字节数组的消息认证码
- mac(String) - Method in class cloud.opencode.base.crypto.hash.HmacFunction
-
Compute MAC of string (UTF-8 encoded) 计算字符串的消息认证码(使用 UTF-8 编码)
- Mac - Interface in cloud.opencode.base.crypto.mac
-
Message Authentication Code (MAC) interface - Provides cryptographic message authentication 消息认证码接口 - 提供加密消息认证功能
- macBase64(byte[]) - Method in class cloud.opencode.base.crypto.hash.HmacFunction
-
Compute MAC and return as Base64 string 计算消息认证码并返回 Base64 字符串
- macHex(byte[]) - Method in class cloud.opencode.base.crypto.hash.HmacFunction
-
Compute MAC and return as hexadecimal string 计算消息认证码并返回十六进制字符串
- maxLength(int) - Method in class cloud.opencode.base.crypto.password.PasswordPolicy.Builder
-
Set maximum length 设置最大长度
- maxVersions(int) - Method in class cloud.opencode.base.crypto.rotation.KeyRotation.Builder
- MD5 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
Deprecated.MD5 is cryptographically broken and should not be used for security purposes. Use SHA-256 or SHA3-256 instead.
- MD5 - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
MD5 (32 hex chars) | MD5 (32 个十六进制字符)
- memory(int) - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf.Builder
-
Sets the memory size in kilobytes 设置内存大小(千字节)
- memory(int) - Method in class cloud.opencode.base.crypto.password.Argon2Hash.Builder
-
Set the memory cost in kilobytes 设置内存成本(千字节)
- mgf(String) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher.Builder
-
Set the mask generation function 设置掩码生成函数
- MIN_RSA_KEY_SIZE - Static variable in class cloud.opencode.base.crypto.pgp.PgpAlgorithm
-
Minimum RSA key size in bits.
- minCharacterTypes(int) - Method in class cloud.opencode.base.crypto.password.PasswordPolicy.Builder
-
Set minimum number of character types 设置最少字符类型数
- minKeyBits(String, int) - Method in class cloud.opencode.base.crypto.policy.CryptoPolicy.Builder
-
Sets the minimum key size in bits for an algorithm.
- minLength(int) - Method in class cloud.opencode.base.crypto.password.PasswordPolicy.Builder
-
Set minimum length 设置最小长度
- mode(CipherMode) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher.Builder
-
Set cipher mode.
- mTls(String, String) - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Creates an SSLContext for mutual TLS (mTLS) using PEM client certificate and PKCS8 private key.
- mTls(String, String, String) - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Creates an SSLContext for mutual TLS with a custom CA trust anchor.
- mTls(Path, Path) - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Creates an SSLContext for mutual TLS from PEM files on disk.
N
- names() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns all claim names.
- needsRehash(String) - Method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Check if hash needs to be upgraded 检查哈希是否需要升级
- needsRehash(String) - Method in class cloud.opencode.base.crypto.password.Argon2Hash
- needsRehash(String) - Method in class cloud.opencode.base.crypto.password.BCryptHash
- needsRehash(String) - Method in interface cloud.opencode.base.crypto.password.PasswordHash
-
Check if a hash needs to be rehashed with current parameters 检查哈希值是否需要使用当前参数重新哈希
- needsRehash(String) - Method in class cloud.opencode.base.crypto.password.Pbkdf2Hash
- needsRehash(String) - Method in class cloud.opencode.base.crypto.password.SCryptHash
- nextBytes(int) - Static method in class cloud.opencode.base.crypto.random.SecureRandoms
-
Generates random bytes using a thread-local cached SecureRandom.
- NO_PADDING - Enum constant in enum class cloud.opencode.base.crypto.symmetric.Padding
-
No padding - Plaintext must be multiple of block size.
- NonceGenerator - Class in cloud.opencode.base.crypto.random
-
Nonce (Number Used Once) generator providing various nonce generation strategies.
- NOT_BEFORE - Static variable in class cloud.opencode.base.crypto.jwt.JwtClaims
- notBefore() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns the not-before time.
- notBefore(Instant) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Sets the not-before time.
- notBefore(Instant) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets the not-before time.
O
- of() - Static method in class cloud.opencode.base.crypto.kdf.Scrypt
-
Creates Scrypt instance with default parameters (N=32768, r=8, p=1) 创建使用默认参数的 Scrypt 实例(N=32768,r=8,p=1)
- of() - Static method in class cloud.opencode.base.crypto.password.SCryptHash
-
Create SCrypt hasher with default parameters 使用默认参数创建 SCrypt 哈希器
- of(byte[]) - Static method in class cloud.opencode.base.crypto.mac.HmacSha256
-
Creates a new HMAC-SHA256 instance with the given key 使用给定密钥创建新的 HMAC-SHA256 实例
- of(byte[]) - Static method in class cloud.opencode.base.crypto.mac.HmacSha512
-
Creates a new HMAC-SHA512 instance with the given key 使用给定密钥创建新的 HMAC-SHA512 实例
- of(byte[]) - Static method in class cloud.opencode.base.crypto.mac.Poly1305
-
Creates a new Poly1305 instance with the given key 使用给定密钥创建新的 Poly1305 实例
- of(byte[]) - Static method in class cloud.opencode.base.crypto.util.SecureBytes
-
Create a SecureBytes instance with a defensive copy of the input data.
- of(int, int, int) - Static method in class cloud.opencode.base.crypto.kdf.Scrypt
-
Creates Scrypt instance with custom parameters 创建使用自定义参数的 Scrypt 实例
- of(AsymmetricAlgorithm) - Static method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Create cipher by algorithm enum 根据算法枚举创建加密器
- of(DigestAlgorithm) - Static method in class cloud.opencode.base.crypto.OpenDigest
-
Create digester by algorithm enum 根据算法枚举创建摘要器
- of(PasswordHashAlgorithm) - Static method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Create password hasher by algorithm enum 根据算法枚举创建密码哈希器
- of(SignatureAlgorithm) - Static method in class cloud.opencode.base.crypto.OpenSign
-
Create signer by algorithm enum 根据算法枚举创建签名器
- of(SymmetricAlgorithm) - Static method in class cloud.opencode.base.crypto.OpenSymmetric
-
Create cipher by algorithm enum 根据算法枚举创建加密器
- of(String) - Static method in class cloud.opencode.base.crypto.otp.Hotp
-
Creates an HOTP instance using a custom HMAC algorithm.
- of(String, byte[]) - Static method in class cloud.opencode.base.crypto.hash.HmacFunction
-
Create HMAC function with custom algorithm 创建指定算法的 HMAC 函数
- of(Map) - Static method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Creates claims from a map.
- of(SecretKey) - Static method in class cloud.opencode.base.crypto.mac.HmacSha256
-
Creates a new HMAC-SHA256 instance with the given SecretKey 使用给定的 SecretKey 创建新的 HMAC-SHA256 实例
- of(SecretKey) - Static method in class cloud.opencode.base.crypto.mac.HmacSha512
-
Creates a new HMAC-SHA512 instance with the given SecretKey 使用给定的 SecretKey 创建新的 HMAC-SHA512 实例
- onRotation(Consumer) - Method in class cloud.opencode.base.crypto.rotation.KeyRotation.Builder
- open(byte[], KeyPair) - Static method in class cloud.opencode.base.crypto.sealedbox.SealedBox
-
Opens (decrypts) a sealed message.
- openAsString(byte[], KeyPair) - Static method in class cloud.opencode.base.crypto.sealedbox.SealedBox
-
Opens (decrypts) a sealed message and returns as string.
- OpenAsymmetric - Class in cloud.opencode.base.crypto
-
Asymmetric encryption facade for encrypt/decrypt operations - Provides convenient API for various asymmetric algorithms 非对称加密门面类 - 为各种非对称加密算法提供便捷的 API
- OpenCrypto - Class in cloud.opencode.base.crypto
-
Main facade class for cryptographic operations - Provides simplified access to all crypto features 加密操作的主门面类 - 提供对所有加密功能的简化访问
- OpenCryptoException - Exception Class in cloud.opencode.base.crypto.exception
-
Base exception for cryptographic operations - Runtime exception for encryption/decryption failures 加密组件基础异常 - 加密/解密操作失败时的运行时异常
- OpenCryptoException(String) - Constructor for exception class cloud.opencode.base.crypto.exception.OpenCryptoException
-
Constructs a new OpenCryptoException with the specified message.
- OpenCryptoException(String, String, String) - Constructor for exception class cloud.opencode.base.crypto.exception.OpenCryptoException
-
Constructs a new OpenCryptoException with algorithm, operation and message.
- OpenCryptoException(String, String, String, Throwable) - Constructor for exception class cloud.opencode.base.crypto.exception.OpenCryptoException
-
Constructs a new OpenCryptoException with algorithm, operation, message and cause.
- OpenCryptoException(String, Throwable) - Constructor for exception class cloud.opencode.base.crypto.exception.OpenCryptoException
-
Constructs a new OpenCryptoException with the specified message and cause.
- OpenDigest - Class in cloud.opencode.base.crypto
-
Message digest facade for computing hash digests - Provides convenient API for various hash algorithms 消息摘要门面类 - 为各种哈希算法提供便捷的 API
- OpenJwt - Class in cloud.opencode.base.crypto
-
OpenJWT Facade - Simplified API for JWT operations OpenJWT 门面类 - 简化的 JWT 操作 API
- OpenKeyException - Exception Class in cloud.opencode.base.crypto.exception
-
Exception for key-related operations - Runtime exception for key generation, parsing and validation failures 密钥相关异常 - 密钥生成、解析和验证失败时的运行时异常
- OpenKeyException(String) - Constructor for exception class cloud.opencode.base.crypto.exception.OpenKeyException
-
Constructs a new OpenKeyException with the specified message.
- OpenKeyException(String, String) - Constructor for exception class cloud.opencode.base.crypto.exception.OpenKeyException
-
Constructs a new OpenKeyException with key type and message.
- OpenKeyException(String, String, Throwable) - Constructor for exception class cloud.opencode.base.crypto.exception.OpenKeyException
-
Constructs a new OpenKeyException with key type, message and cause.
- OpenKeyException(String, Throwable) - Constructor for exception class cloud.opencode.base.crypto.exception.OpenKeyException
-
Constructs a new OpenKeyException with the specified message and cause.
- OpenPasswordHash - Class in cloud.opencode.base.crypto
-
Password hashing facade for secure password storage - Provides convenient API for various password hashing algorithms 密码哈希门面类 - 为各种密码哈希算法提供便捷的 API
- OpenPgp - Class in cloud.opencode.base.crypto
-
OpenPGP Facade - Simplified API for PGP encryption and decryption OpenPGP 门面类 - 简化的 PGP 加密解密 API
- OpenSign - Class in cloud.opencode.base.crypto
-
Digital signature facade for signing and verification - Provides convenient API for various signature algorithms 数字签名门面类 - 为各种签名算法提供便捷的 API
- OpenSignatureException - Exception Class in cloud.opencode.base.crypto.exception
-
Exception for digital signature operations - Runtime exception for signature generation and verification failures 签名相关异常 - 数字签名生成和验证失败时的运行时异常
- OpenSignatureException(String) - Constructor for exception class cloud.opencode.base.crypto.exception.OpenSignatureException
-
Constructs a new OpenSignatureException with the specified message.
- OpenSignatureException(String, String) - Constructor for exception class cloud.opencode.base.crypto.exception.OpenSignatureException
-
Constructs a new OpenSignatureException with algorithm and message.
- OpenSignatureException(String, String, Throwable) - Constructor for exception class cloud.opencode.base.crypto.exception.OpenSignatureException
-
Constructs a new OpenSignatureException with algorithm, message and cause.
- OpenSignatureException(String, Throwable) - Constructor for exception class cloud.opencode.base.crypto.exception.OpenSignatureException
-
Constructs a new OpenSignatureException with the specified message and cause.
- OPENSSH_PRIVATE - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
OpenSSH Private Key | OpenSSH 私钥
- OPENSSH_PUBLIC - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
OpenSSH Public Key | OpenSSH 公钥
- OpenSsl - Class in cloud.opencode.base.crypto.ssl
-
OpenSsl - SSL/TLS Utility Class OpenSsl - SSL/TLS 工具类
- OpenSymmetric - Class in cloud.opencode.base.crypto
-
Symmetric encryption facade for encrypt/decrypt operations - Provides convenient API for various symmetric algorithms 对称加密门面类 - 为各种对称加密算法提供便捷的 API
- operation() - Method in exception class cloud.opencode.base.crypto.exception.OpenCryptoException
-
Returns the operation being performed when this exception occurred.
- owaspRecommended() - Static method in class cloud.opencode.base.crypto.kdf.Pbkdf2
-
Creates PBKDF2 instance with OWASP recommended parameters (2023) Uses PBKDF2-HMAC-SHA256 with 600,000 iterations 创建使用 OWASP 推荐参数的 PBKDF2 实例(2023) 使用 PBKDF2-HMAC-SHA256 和 600,000 次迭代
- owaspRecommended() - Static method in class cloud.opencode.base.crypto.password.Pbkdf2Hash
-
Create PBKDF2 hasher with OWASP recommended parameters (SHA-256, 600k iterations) 使用 OWASP 推荐参数创建 PBKDF2 哈希器(SHA-256,60 万次迭代)
- owaspRecommended() - Static method in class cloud.opencode.base.crypto.password.SCryptHash
-
Create SCrypt hasher with OWASP recommended parameters 使用 OWASP 推荐参数创建 SCrypt 哈希器
P
- P_256 - Enum constant in enum class cloud.opencode.base.crypto.enums.CurveType
-
NIST P-256 curve (secp256r1, prime256v1)
- P_384 - Enum constant in enum class cloud.opencode.base.crypto.enums.CurveType
-
NIST P-384 curve (secp384r1)
- P_521 - Enum constant in enum class cloud.opencode.base.crypto.enums.CurveType
-
NIST P-521 curve (secp521r1)
- p256() - Static method in class cloud.opencode.base.crypto.asymmetric.EccCipher
-
Create ECC cipher with P-256 curve (recommended) 创建使用 P-256 曲线的 ECC 密码(推荐)
- p256() - Static method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
-
Creates an ECDH engine with NIST P-256 curve 创建使用 NIST P-256 曲线的 ECDH 引擎
- p256() - Static method in class cloud.opencode.base.crypto.signature.EcdsaSignature
-
Create ECDSA signature with P-256 curve (SHA-256, recommended for most uses) 创建使用 P-256 曲线的 ECDSA 签名(SHA-256,推荐用于大多数场景)
- p256WithGeneratedKeyPair() - Static method in class cloud.opencode.base.crypto.signature.EcdsaSignature
-
Create ECDSA P-256 signature with generated key pair 创建带有生成密钥对的 ECDSA P-256 签名
- p384() - Static method in class cloud.opencode.base.crypto.asymmetric.EccCipher
-
Create ECC cipher with P-384 curve 创建使用 P-384 曲线的 ECC 密码
- p384() - Static method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
-
Creates an ECDH engine with NIST P-384 curve 创建使用 NIST P-384 曲线的 ECDH 引擎
- p384() - Static method in class cloud.opencode.base.crypto.signature.EcdsaSignature
-
Create ECDSA signature with P-384 curve (SHA-384, higher security) 创建使用 P-384 曲线的 ECDSA 签名(SHA-384,更高安全性)
- p384WithGeneratedKeyPair() - Static method in class cloud.opencode.base.crypto.signature.EcdsaSignature
-
Create ECDSA P-384 signature with generated key pair 创建带有生成密钥对的 ECDSA P-384 签名
- p521() - Static method in class cloud.opencode.base.crypto.asymmetric.EccCipher
-
Create ECC cipher with P-521 curve 创建使用 P-521 曲线的 ECC 密码
- p521() - Static method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
-
Creates an ECDH engine with NIST P-521 curve 创建使用 NIST P-521 曲线的 ECDH 引擎
- p521() - Static method in class cloud.opencode.base.crypto.signature.EcdsaSignature
-
Create ECDSA signature with P-521 curve (SHA-512, maximum security) 创建使用 P-521 曲线的 ECDSA 签名(SHA-512,最高安全性)
- p521WithGeneratedKeyPair() - Static method in class cloud.opencode.base.crypto.signature.EcdsaSignature
-
Create ECDSA P-521 signature with generated key pair 创建带有生成密钥对的 ECDSA P-521 签名
- padding(Padding) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher.Builder
-
Set padding scheme.
- Padding - Enum Class in cloud.opencode.base.crypto.symmetric
-
Padding scheme enumeration for block cipher algorithms.
- paddingError(String) - Static method in exception class cloud.opencode.base.crypto.exception.OpenCryptoException
-
Creates an exception for padding errors.
- padPkcs7(byte[], int) - Static method in class cloud.opencode.base.crypto.util.ByteUtil
-
Apply PKCS#7 padding to data 对数据应用PKCS#7填充
- parallelism(int) - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf.Builder
-
Sets the parallelism factor 设置并行度因子
- parallelism(int) - Method in class cloud.opencode.base.crypto.kdf.Scrypt.Builder
-
Sets the parallelization parameter (p) 设置并行化参数(p)
- parallelism(int) - Method in class cloud.opencode.base.crypto.password.Argon2Hash.Builder
-
Set the parallelism factor (number of threads) 设置并行因子(线程数)
- parallelism(int) - Method in class cloud.opencode.base.crypto.password.SCryptHash.Builder
-
Set parallelization parameter (p) 设置并行化参数(p)
- parse(String) - Static method in class cloud.opencode.base.crypto.jwt.JwtUtil
-
Parses JWT parts without verification.
- parseFailed(String, Throwable) - Static method in exception class cloud.opencode.base.crypto.exception.OpenKeyException
-
Creates an exception for key parsing failures.
- parseUnsafe(String) - Static method in class cloud.opencode.base.crypto.jwt.JwtUtil
-
Parses a JWT without verification (unsafe).
- parseUnsafe(String) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Parses a JWT without verification (unsafe).
- PasswordHash - Interface in cloud.opencode.base.crypto.password
-
Password hashing interface for secure password storage - Provides methods for hashing and verifying passwords 密码哈希接口,用于安全存储密码 - 提供密码哈希和验证方法
- PasswordHashAlgorithm - Enum Class in cloud.opencode.base.crypto.enums
-
Password hashing algorithm enumeration - 密码哈希算法枚举 密码哈希算法的枚举定义
- PasswordPolicy - Class in cloud.opencode.base.crypto.password
-
Password policy for validating password strength - Configurable rules for password complexity 密码策略用于验证密码强度 - 可配置的密码复杂度规则
- PasswordPolicy.Builder - Class in cloud.opencode.base.crypto.password
-
Builder for PasswordPolicy PasswordPolicy 构建器
- PasswordPolicy.ValidationResult - Class in cloud.opencode.base.crypto.password
-
Validation result containing validity and violations 验证结果,包含有效性和违规信息
- pbkdf2() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
PBKDF2 password hash PBKDF2 密码哈希
- pbkdf2() - Static method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Create PBKDF2 password hasher 创建 PBKDF2 密码哈希器
- pbkdf2(int) - Static method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Create PBKDF2 password hasher with custom iterations 创建自定义迭代次数的 PBKDF2 密码哈希器
- Pbkdf2 - Class in cloud.opencode.base.crypto.kdf
-
PBKDF2 (Password-Based Key Derivation Function 2) implementation - PKCS #5 v2.0 standard KDF PBKDF2 密钥派生函数实现 - PKCS #5 v2.0 标准 KDF
- PBKDF2 - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
PBKDF2 hash | PBKDF2 哈希
- PBKDF2_SHA256 - Enum constant in enum class cloud.opencode.base.crypto.enums.PasswordHashAlgorithm
-
PBKDF2 with HMAC-SHA256
- PBKDF2_SHA512 - Enum constant in enum class cloud.opencode.base.crypto.enums.PasswordHashAlgorithm
-
PBKDF2 with HMAC-SHA512
- Pbkdf2Hash - Class in cloud.opencode.base.crypto.password
-
PBKDF2 password hashing implementation - Password-Based Key Derivation Function 2 using JDK standard library PBKDF2 密码哈希实现 - 使用 JDK 标准库的基于密码的密钥派生函数 2
- Pbkdf2Hash.Builder - Class in cloud.opencode.base.crypto.password
-
Builder for creating custom Pbkdf2Hash instances 用于创建自定义 Pbkdf2Hash 实例的构建器
- pbkdf2Kdf() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
PBKDF2-SHA256 KDF PBKDF2-SHA256 密钥派生
- PEM - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.EncodingType
-
PEM format (Base64 with headers) | PEM 格式 (带头部的 Base64)
- PEM_CERTIFICATE - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
PEM X.509 Certificate | PEM X.509 证书
- PEM_EC_PRIVATE - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
PEM EC Private Key | PEM EC 私钥
- PEM_EC_PUBLIC - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
PEM EC Public Key | PEM EC 公钥
- PEM_PKCS8_ENCRYPTED - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
PEM PKCS#8 Encrypted Private Key | PEM PKCS#8 加密私钥
- PEM_PKCS8_PRIVATE - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
PEM PKCS#8 Private Key | PEM PKCS#8 私钥
- PEM_PUBLIC_KEY - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
PEM Public Key (generic) | PEM 公钥 (通用)
- PEM_RSA_PRIVATE - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
PEM RSA Private Key | PEM RSA 私钥
- PEM_RSA_PUBLIC - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
PEM RSA Public Key | PEM RSA 公钥
- pemCertificate(String) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Loads a PEM-encoded certificate and trusts it (as a CA or leaf certificate).
- pemCertificate(Path) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Loads a PEM-encoded certificate from a file.
- pemClientCertificate(String, String) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Configures mutual TLS (mTLS) using PEM-encoded client certificate and PKCS8 private key.
- pemClientCertificate(Path, Path) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Configures mutual TLS (mTLS) from PEM files on disk.
- PemCodec - Class in cloud.opencode.base.crypto.codec
-
PEM format encoding and decoding utility - Handle PEM encoded keys and certificates PEM 格式编解码工具类 - 处理 PEM 编码的密钥和证书
- period() - Method in class cloud.opencode.base.crypto.otp.Totp
-
Returns the time period in seconds.
- period(int) - Method in class cloud.opencode.base.crypto.otp.Totp.Builder
-
Sets the time period in seconds.
- PgpAlgorithm - Class in cloud.opencode.base.crypto.pgp
-
PGP Algorithm Configuration - Defines algorithms used in PGP operations PGP 算法配置 - 定义 PGP 操作中使用的算法
- PgpAlgorithm.Hash - Enum Class in cloud.opencode.base.crypto.pgp
-
Hash Algorithms for signatures and integrity 用于签名和完整性的哈希算法
- PgpAlgorithm.PublicKey - Enum Class in cloud.opencode.base.crypto.pgp
-
Public Key Algorithms 公钥算法
- PgpAlgorithm.Symmetric - Enum Class in cloud.opencode.base.crypto.pgp
-
Symmetric Key Algorithms for encryption 用于加密的对称密钥算法
- PgpCipher - Class in cloud.opencode.base.crypto.pgp
-
PGP Cipher - Provides PGP encryption and decryption operations PGP 加密器 - 提供 PGP 加密和解密操作
- PgpKeyPair - Record Class in cloud.opencode.base.crypto.pgp
-
PGP Key Pair - Holds PGP public and secret key pair PGP 密钥对 - 保存 PGP 公钥和私钥对
- PgpKeyPair(PGPPublicKey, PGPSecretKey, String, long) - Constructor for record class cloud.opencode.base.crypto.pgp.PgpKeyPair
-
Creates a PGP key pair with the given public and secret keys.
- PgpKeyUtil - Class in cloud.opencode.base.crypto.pgp
-
PGP Key Utility - Manages PGP key generation, import, and export PGP 密钥工具 - 管理 PGP 密钥生成、导入和导出
- PKCS5 - Enum constant in enum class cloud.opencode.base.crypto.symmetric.Padding
-
PKCS5 padding scheme.
- PKCS7 - Enum constant in enum class cloud.opencode.base.crypto.symmetric.Padding
-
PKCS7 padding scheme - Recommended.
- PolicyViolationException - Exception Class in cloud.opencode.base.crypto.policy
-
Exception thrown when a cryptographic operation violates the configured policy.
- PolicyViolationException(String, String, String) - Constructor for exception class cloud.opencode.base.crypto.policy.PolicyViolationException
-
Constructs a PolicyViolationException with algorithm, operation, and message.
- Poly1305 - Class in cloud.opencode.base.crypto.mac
-
Poly1305 MAC implementation - One-time authenticator using Bouncy Castle Poly1305 消息认证码实现 - 使用 Bouncy Castle 的一次性认证器
- privateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets the private key for asymmetric signing.
- protocol(String) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Sets the SSL protocol.
- PS256 - Enum constant in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
RSA-PSS with SHA-256
- PS384 - Enum constant in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
RSA-PSS with SHA-384
- PS512 - Enum constant in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
RSA-PSS with SHA-512
- publicKey() - Method in record class cloud.opencode.base.crypto.pgp.PgpKeyPair
-
Returns the value of the
publicKeyrecord component.
Q
- quickSign(JwtClaims, String) - Static method in class cloud.opencode.base.crypto.jwt.JwtUtil
-
Creates a quick JWT with claims.
- quickSign(String, String, Duration) - Static method in class cloud.opencode.base.crypto.jwt.JwtUtil
-
Creates a quick JWT with HMAC-SHA256.
R
- random(int) - Static method in class cloud.opencode.base.crypto.random.NonceGenerator
-
Generates a random nonce of the specified length.
- random(int, SecureRandom) - Static method in class cloud.opencode.base.crypto.random.NonceGenerator
-
Generates a random nonce of the specified length using the provided SecureRandom.
- randomBytes(int) - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Generate cryptographically secure random bytes 生成密码学安全的随机字节
- RandomBytes - Class in cloud.opencode.base.crypto.random
-
Utility class for generating random bytes with various encoding options.
- randomIv(int) - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Generate cryptographically secure random initialization vector 生成密码学安全的随机初始化向量
- randomNonce(int) - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Generate cryptographically secure random nonce 生成密码学安全的随机nonce
- randomSalt(int) - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Generate cryptographically secure random salt 生成密码学安全的随机盐值
- requireDigit(boolean) - Method in class cloud.opencode.base.crypto.password.PasswordPolicy.Builder
-
Require digits 要求数字
- requireLowercase(boolean) - Method in class cloud.opencode.base.crypto.password.PasswordPolicy.Builder
-
Require lowercase letters 要求小写字母
- requireSpecial(boolean) - Method in class cloud.opencode.base.crypto.password.PasswordPolicy.Builder
-
Require special characters 要求特殊字符
- requireUppercase(boolean) - Method in class cloud.opencode.base.crypto.password.PasswordPolicy.Builder
-
Require uppercase letters 要求大写字母
- reset() - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- reset() - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- reset() - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Resets the MAC to its initial state 将 MAC 重置为初始状态
- reset() - Method in class cloud.opencode.base.crypto.mac.Poly1305
- reset() - Method in class cloud.opencode.base.crypto.OpenDigest
-
Reset digest state 重置摘要状态
- RETIRED - Enum constant in enum class cloud.opencode.base.crypto.rotation.KeyRotation.KeyStatus
-
Key is retired, should not be used
- retireOldVersions() - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Retires keys older than the grace period.
- reverse(byte[]) - Static method in class cloud.opencode.base.crypto.util.ByteUtil
-
Reverse byte array 反转字节数组
- rotate() - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Manually triggers a key rotation.
- ROTATION_FAILED - Enum constant in enum class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent.Type
- RotationEvent(String, KeyRotation.RotationEvent.Type, long, Instant) - Constructor for record class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent
-
Creates an instance of a
RotationEventrecord class. - rotationInterval(Duration) - Method in class cloud.opencode.base.crypto.rotation.KeyRotation.Builder
- RS256 - Enum constant in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
RSA PKCS#1 with SHA-256
- RS384 - Enum constant in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
RSA PKCS#1 with SHA-384
- RS512 - Enum constant in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
RSA PKCS#1 with SHA-512
- rsa() - Static method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Create RSA-PKCS1 cipher 创建 RSA-PKCS1 加密
- rsa() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
RSA-PKCS1 cipher RSA-PKCS1 加密
- RSA_ENCRYPT - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.PublicKey
- RSA_GENERAL - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.PublicKey
- RSA_OAEP_SHA256 - Enum constant in enum class cloud.opencode.base.crypto.enums.AsymmetricAlgorithm
-
RSA with OAEP padding and SHA-256 (Recommended)
- RSA_OAEP_SHA384 - Enum constant in enum class cloud.opencode.base.crypto.enums.AsymmetricAlgorithm
-
RSA with OAEP padding and SHA-384 (Recommended)
- RSA_OAEP_SHA512 - Enum constant in enum class cloud.opencode.base.crypto.enums.AsymmetricAlgorithm
-
RSA with OAEP padding and SHA-512 (Recommended)
- RSA_PKCS1 - Enum constant in enum class cloud.opencode.base.crypto.enums.AsymmetricAlgorithm
-
RSA with PKCS1 padding (Legacy, not recommended for new applications)
- RSA_PSS_SHA256 - Enum constant in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
RSA-PSS signature with SHA-256 (Recommended)
- RSA_PSS_SHA384 - Enum constant in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
RSA-PSS signature with SHA-384 (Recommended)
- RSA_PSS_SHA512 - Enum constant in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
RSA-PSS signature with SHA-512 (Recommended)
- RSA_SHA256 - Enum constant in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
RSA signature with SHA-256
- RSA_SHA384 - Enum constant in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
RSA signature with SHA-384
- RSA_SHA512 - Enum constant in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
RSA signature with SHA-512
- RSA_SIGN - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.PublicKey
- rsa2048() - Static method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
-
Create RSA cipher with generated 2048-bit key pair 创建带 2048 位密钥对的 RSA 密码
- rsa4096() - Static method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
-
Create RSA cipher with generated 4096-bit key pair 创建带 4096 位密钥对的 RSA 密码
- rsaAes() - Static method in class cloud.opencode.base.crypto.envelope.HybridCrypto
-
Create hybrid crypto with RSA and AES (Recommended) 创建使用 RSA 和 AES 的混合加密(推荐)
- rsaAesGcm() - Static method in class cloud.opencode.base.crypto.envelope.EnvelopeCrypto
-
Create envelope crypto with RSA-OAEP and AES-GCM (Recommended) 创建使用 RSA-OAEP 和 AES-GCM 的信封加密(推荐)
- RsaCipher - Class in cloud.opencode.base.crypto.asymmetric
-
RSA cipher implementation with PKCS1 padding - Legacy RSA encryption RSA 密码实现(PKCS1 填充)- 传统 RSA 加密
- rsaOaep() - Static method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Create RSA-OAEP cipher (recommended) 创建 RSA-OAEP 加密(推荐)
- rsaOaep() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
RSA-OAEP-SHA256 cipher (recommended) RSA-OAEP-SHA256 加密(推荐)
- RsaOaepCipher - Class in cloud.opencode.base.crypto.asymmetric
-
RSA cipher implementation with OAEP padding - Recommended RSA encryption RSA 密码实现(OAEP 填充)- 推荐的 RSA 加密方式
- RsaOaepCipher.Builder - Class in cloud.opencode.base.crypto.asymmetric
-
Builder for RSA-OAEP cipher RSA-OAEP 密码构建器
- rsaPss() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
RSA-PSS-SHA256 signer RSA-PSS-SHA256 签名
- rsaPss() - Static method in class cloud.opencode.base.crypto.OpenSign
-
Create RSA-PSS signer 创建 RSA-PSS 签名器
- rsaPssSha384() - Static method in class cloud.opencode.base.crypto.OpenSign
-
Create RSA-PSS-SHA384 signer 创建 RSA-PSS-SHA384 签名器
- rsaPssSha512() - Static method in class cloud.opencode.base.crypto.OpenSign
-
Create RSA-PSS-SHA512 signer 创建 RSA-PSS-SHA512 签名器
- RsaPssSignature - Class in cloud.opencode.base.crypto.signature
-
RSA-PSS signature implementation - RSA probabilistic signature scheme (recommended) RSA-PSS 签名实现 - RSA 概率签名方案(推荐)
- RsaSignature - Class in cloud.opencode.base.crypto.signature
-
RSA signature implementation - RSA digital signature with SHA hash algorithms RSA 签名实现 - 使用 SHA 哈希算法的 RSA 数字签名
S
- saltLength(int) - Method in class cloud.opencode.base.crypto.password.Argon2Hash.Builder
-
Set the salt length in bytes 设置盐值长度(字节)
- saltLength(int) - Method in class cloud.opencode.base.crypto.password.Pbkdf2Hash.Builder
-
Set the salt length in bytes 设置盐长度(字节)
- save(Path, char[]) - Method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Save key store to file 保存密钥存储到文件
- scrypt() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
SCrypt password hash SCrypt 密码哈希
- scrypt() - Static method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Create SCrypt password hasher 创建 SCrypt 密码哈希器
- Scrypt - Class in cloud.opencode.base.crypto.kdf
-
Scrypt key derivation function implementation - Memory-hard password-based KDF Scrypt 密钥派生函数实现 - 内存困难的基于密码的 KDF
- SCRYPT - Enum constant in enum class cloud.opencode.base.crypto.enums.PasswordHashAlgorithm
-
SCrypt - Password-based key derivation function (Recommended)
- SCRYPT - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
SCrypt hash | SCrypt 哈希
- Scrypt.Builder - Class in cloud.opencode.base.crypto.kdf
-
Builder for Scrypt configuration Scrypt 配置构建器
- SCryptHash - Class in cloud.opencode.base.crypto.password
-
SCrypt password hashing implementation - Memory-hard password hashing using scrypt algorithm (requires Bouncy Castle) SCrypt 密码哈希实现 - 使用 scrypt 算法的内存困难密码哈希(需要 Bouncy Castle)
- SCryptHash.Builder - Class in cloud.opencode.base.crypto.password
-
Builder for creating custom SCryptHash instances 用于创建自定义 SCryptHash 实例的构建器
- seal(byte[], PublicKey) - Static method in class cloud.opencode.base.crypto.sealedbox.SealedBox
-
Seals (encrypts) a message for a recipient.
- seal(String, PublicKey) - Static method in class cloud.opencode.base.crypto.sealedbox.SealedBox
-
Seals (encrypts) a string message for a recipient.
- SealedBox - Class in cloud.opencode.base.crypto.sealedbox
-
Sealed Box - Anonymous public-key encryption (NaCl/Libsodium style) 密封盒 - 匿名公钥加密(NaCl/Libsodium 风格)
- SealedBox.Algorithm - Enum Class in cloud.opencode.base.crypto.sealedbox
-
Supported algorithms for SealedBox.
- SealedBox.Builder - Class in cloud.opencode.base.crypto.sealedbox
-
Builder for SealedBox.
- SECP256K1 - Enum constant in enum class cloud.opencode.base.crypto.enums.CurveType
-
secp256k1 curve (used in Bitcoin and Ethereum)
- secret(byte[]) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets the HMAC secret bytes.
- secret(String) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets the HMAC secret.
- SecretBox - Class in cloud.opencode.base.crypto.sealedbox
-
Secret Box - Simplified symmetric encryption (NaCl/Libsodium style) 秘密盒 - 简化的对称加密(NaCl/Libsodium 风格)
- secretKey() - Method in record class cloud.opencode.base.crypto.pgp.PgpKeyPair
-
Returns the value of the
secretKeyrecord component. - secretKey(byte[], String) - Static method in class cloud.opencode.base.crypto.key.KeyGenerator
-
Create secret key from byte array 从字节数组创建对称密钥
- SecretKeyUtil - Class in cloud.opencode.base.crypto.key
-
Secret key utility class - Utility methods for symmetric key operations 对称密钥工具类 - 对称密钥操作的实用方法
- SecureBytes - Class in cloud.opencode.base.crypto.util
-
Secure byte array wrapper with automatic memory erasure on close 安全字节数组包装器,关闭时自动擦除内存
- secureErase(byte[]) - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Securely erase byte array by overwriting with zeros 通过用零覆盖来安全擦除字节数组
- secureErase(char[]) - Static method in interface cloud.opencode.base.crypto.password.PasswordHash
-
Securely erase a password character array by overwriting with zeros 通过用零覆盖来安全擦除密码字符数组
- secureErase(char[]) - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Securely erase char array by overwriting with zeros 通过用零覆盖来安全擦除字符数组
- secureErase(ByteBuffer) - Static method in class cloud.opencode.base.crypto.util.CryptoUtil
-
Securely erase ByteBuffer by overwriting with zeros 通过用零覆盖来安全擦除ByteBuffer
- SecureEraser - Class in cloud.opencode.base.crypto.util
-
Secure memory erasure utilities to prevent sensitive data leakage - Overwrites memory with zeros to prevent data recovery 安全内存擦除工具,防止敏感数据泄露 - 用零覆盖内存以防止数据恢复
- SecureKeyStore - Class in cloud.opencode.base.crypto.key
-
Secure key store for managing cryptographic keys - Store and retrieve keys securely using PKCS12 format 安全密钥存储 - 使用 PKCS12 格式安全地存储和检索密钥
- secureRandom(SecureRandom) - Method in class cloud.opencode.base.crypto.password.Argon2Hash.Builder
-
Set the SecureRandom instance for salt generation 设置用于盐值生成的 SecureRandom 实例
- secureRandom(SecureRandom) - Method in class cloud.opencode.base.crypto.password.BCryptHash.Builder
-
Set the SecureRandom instance for salt generation 设置用于盐值生成的 SecureRandom 实例
- secureRandom(SecureRandom) - Method in class cloud.opencode.base.crypto.password.Pbkdf2Hash.Builder
-
Set custom SecureRandom instance 设置自定义 SecureRandom 实例
- secureRandom(SecureRandom) - Method in class cloud.opencode.base.crypto.password.SCryptHash.Builder
-
Set custom SecureRandom instance 设置自定义 SecureRandom 实例
- secureRandom(SecureRandom) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Sets secure random.
- SecureRandoms - Class in cloud.opencode.base.crypto.random
-
Secure random number generator factory providing various SecureRandom instances.
- serialize() - Method in record class cloud.opencode.base.crypto.versioned.VersionedPayload
-
Serializes this payload to a byte array.
- setAad(byte[]) - Method in class cloud.opencode.base.crypto.streaming.StreamingAead
-
Set additional authenticated data (AAD) for all segments.
- setAad(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Set additional authenticated data (AAD).
- setAad(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- setAad(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- setAad(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- setIv(byte[]) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Set initialization vector 设置初始化向量
- setIv(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Set the initialization vector.
- setIv(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- setIv(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- setIv(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- setIv(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- setIv(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Set the initialization vector.
- setKey(byte[]) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Set secret key from bytes 从字节设置密钥
- setKey(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Set the secret key from bytes.
- setKey(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- setKey(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- setKey(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- setKey(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- setKey(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Set the secret key from bytes.
- setKey(SecretKey) - Method in class cloud.opencode.base.crypto.OpenSymmetric
-
Set secret key 设置密钥
- setKey(SecretKey) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Set the secret key.
- setKey(SecretKey) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- setKey(SecretKey) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- setKey(SecretKey) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- setKey(SecretKey) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- setKey(SecretKey) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Set the secret key.
- setKeyPair(KeyPair) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Set both public and private keys from key pair 从密钥对设置公钥和私钥
- setKeyPair(KeyPair) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- setKeyPair(KeyPair) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- setKeyPair(KeyPair) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- setKeyPair(KeyPair) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- setKeyPair(KeyPair) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Set key pair 设置密钥对
- setKeyPair(KeyPair) - Method in class cloud.opencode.base.crypto.OpenSign
-
Set key pair for signing and verification 设置签名和验签的密钥对
- setKeyPair(KeyPair) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- setKeyPair(KeyPair) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- setKeyPair(KeyPair) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- setKeyPair(KeyPair) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- setKeyPair(KeyPair) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Set both keys from a key pair 从密钥对设置公私钥
- setKeyPair(KeyPair) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- setMode(CipherMode) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- setMode(CipherMode) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- setMode(CipherMode) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Set the cipher mode.
- setNonce(byte[]) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Set the nonce (same as IV for most AEAD ciphers).
- setNonce(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- setNonce(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- setNonce(byte[]) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- setPadding(Padding) - Method in class cloud.opencode.base.crypto.symmetric.AesCipher
- setPadding(Padding) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- setPadding(Padding) - Method in interface cloud.opencode.base.crypto.symmetric.SymmetricCipher
-
Set the padding scheme.
- setPrivateKey(byte[]) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Set private key from encoded byte array 从编码的字节数组设置私钥
- setPrivateKey(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- setPrivateKey(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- setPrivateKey(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- setPrivateKey(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- setPrivateKey(byte[]) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- setPrivateKey(byte[]) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- setPrivateKey(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- setPrivateKey(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- setPrivateKey(byte[]) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Set the private key from encoded bytes 从编码字节设置私钥
- setPrivateKey(byte[]) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- setPrivateKey(PrivateKey) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Set private key for decryption operations 设置用于解密操作的私钥
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
- setPrivateKey(PrivateKey) - Method in interface cloud.opencode.base.crypto.keyexchange.KeyExchangeEngine
-
Sets the private key for this party 设置本方的私钥
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.keyexchange.X25519Engine
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.keyexchange.X448Engine
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Set private key for decryption 设置解密私钥
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.OpenSign
-
Set private key for signing 设置签名私钥
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- setPrivateKey(PrivateKey) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Set the private key for signing operations 设置用于签名操作的私钥
- setPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- setPrivateKeyPem(String) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Set private key from PEM formatted string 从 PEM 格式字符串设置私钥
- setPrivateKeyPem(String) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- setPrivateKeyPem(String) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- setPrivateKeyPem(String) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- setPrivateKeyPem(String) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- setPrivateKeyPem(String) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- setPrivateKeyPem(String) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- setPrivateKeyPem(String) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- setPrivateKeyPem(String) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- setPrivateKeyPem(String) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Set the private key from PEM format 从 PEM 格式设置私钥
- setPrivateKeyPem(String) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- setPublicKey(byte[]) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Set public key from encoded byte array 从编码的字节数组设置公钥
- setPublicKey(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- setPublicKey(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- setPublicKey(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- setPublicKey(byte[]) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- setPublicKey(byte[]) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- setPublicKey(byte[]) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- setPublicKey(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- setPublicKey(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- setPublicKey(byte[]) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Set the public key from encoded bytes 从编码字节设置公钥
- setPublicKey(byte[]) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- setPublicKey(PublicKey) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Set public key for encryption operations 设置用于加密操作的公钥
- setPublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- setPublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- setPublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- setPublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- setPublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Set public key for encryption 设置加密公钥
- setPublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.OpenSign
-
Set public key for verification 设置验签公钥
- setPublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- setPublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- setPublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- setPublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- setPublicKey(PublicKey) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Set the public key for verification operations 设置用于验证操作的公钥
- setPublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- setPublicKeyPem(String) - Method in interface cloud.opencode.base.crypto.asymmetric.AsymmetricCipher
-
Set public key from PEM formatted string 从 PEM 格式字符串设置公钥
- setPublicKeyPem(String) - Method in class cloud.opencode.base.crypto.asymmetric.EccCipher
- setPublicKeyPem(String) - Method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
- setPublicKeyPem(String) - Method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
- setPublicKeyPem(String) - Method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
- setPublicKeyPem(String) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- setPublicKeyPem(String) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- setPublicKeyPem(String) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- setPublicKeyPem(String) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- setPublicKeyPem(String) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Set the public key from PEM format 从 PEM 格式设置公钥
- setPublicKeyPem(String) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- setRecipientPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.envelope.EnvelopeCrypto
-
Set recipient private key for decryption 设置接收者私钥用于解密
- setRecipientPrivateKey(PrivateKey) - Method in class cloud.opencode.base.crypto.envelope.HybridCrypto
-
Set recipient private key for decryption 设置接收者私钥用于解密
- setRecipientPublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.envelope.EnvelopeCrypto
-
Set recipient public key for encryption 设置接收者公钥用于加密
- setRecipientPublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.envelope.HybridCrypto
-
Set recipient public key for encryption 设置接收者公钥用于加密
- setRemotePublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
- setRemotePublicKey(PublicKey) - Method in interface cloud.opencode.base.crypto.keyexchange.KeyExchangeEngine
-
Sets the remote party's public key 设置对方的公钥
- setRemotePublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.keyexchange.X25519Engine
- setRemotePublicKey(PublicKey) - Method in class cloud.opencode.base.crypto.keyexchange.X448Engine
- setSegmentSize(int) - Method in class cloud.opencode.base.crypto.streaming.StreamingAead
-
Set the plaintext segment size in bytes.
- setTagLength(int) - Method in interface cloud.opencode.base.crypto.symmetric.AeadCipher
-
Set authentication tag length in bits.
- setTagLength(int) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher
- setTagLength(int) - Method in class cloud.opencode.base.crypto.symmetric.ChaChaCipher
- setTagLength(int) - Method in class cloud.opencode.base.crypto.symmetric.Sm4Cipher
- sha1() - Static method in class cloud.opencode.base.crypto.otp.Hotp
-
Creates an HOTP instance using HmacSHA1 (default, compatible with most authenticator apps).
- sha1() - Static method in class cloud.opencode.base.crypto.otp.Totp
-
Creates a TOTP instance with default settings (SHA-1, 30s period, 6 digits).
- SHA1 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
Deprecated.SHA-1 is cryptographically weak and should not be used for security purposes. Use SHA-256 or SHA3-256 instead.
- SHA1 - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
SHA-1 (40 hex chars) | SHA-1 (40 个十六进制字符)
- sha224() - Static method in class cloud.opencode.base.crypto.hash.Sha2Hash
-
Create SHA-224 hash function (224-bit digest) 创建 SHA-224 哈希函数(224 位摘要)
- SHA224 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
SHA-224 algorithm - 224-bit digest
- sha256() - Static method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
-
Create RSA-OAEP cipher with SHA-256 digest (recommended) 创建使用 SHA-256 摘要的 RSA-OAEP 密码(推荐)
- sha256() - Static method in class cloud.opencode.base.crypto.hash.Sha2Hash
-
Create SHA-256 hash function (256-bit digest) 创建 SHA-256 哈希函数(256 位摘要)
- sha256() - Static method in class cloud.opencode.base.crypto.kdf.Hkdf
-
Creates an HKDF instance with SHA-256 使用 SHA-256 创建 HKDF 实例
- sha256() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
SHA-256 digester SHA-256 摘要器
- sha256() - Static method in class cloud.opencode.base.crypto.OpenDigest
-
Create SHA-256 digester 创建 SHA-256 摘要器
- sha256() - Static method in class cloud.opencode.base.crypto.otp.Hotp
-
Creates an HOTP instance using HmacSHA256.
- sha256() - Static method in class cloud.opencode.base.crypto.otp.Totp
-
Creates a TOTP instance using SHA-256 (30s period, 6 digits).
- sha256() - Static method in class cloud.opencode.base.crypto.password.Pbkdf2Hash
-
Create PBKDF2 hasher with SHA-256 and OWASP recommended parameters 使用 SHA-256 和 OWASP 推荐参数创建 PBKDF2 哈希器
- sha256() - Static method in class cloud.opencode.base.crypto.signature.RsaPssSignature
-
Create RSA-PSS signature with SHA-256 (2048-bit key recommended) 创建使用 SHA-256 的 RSA-PSS 签名(推荐 2048 位密钥)
- sha256() - Static method in class cloud.opencode.base.crypto.signature.RsaSignature
-
Create RSA signature with SHA-256 (2048-bit key recommended) 创建使用 SHA-256 的 RSA 签名(推荐 2048 位密钥)
- SHA256 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
SHA-256 algorithm - 256-bit digest (Recommended)
- SHA256 - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Hash
- SHA256 - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
SHA-256 (64 hex chars) | SHA-256 (64 个十六进制字符)
- sha256WithKeyPair() - Static method in class cloud.opencode.base.crypto.signature.RsaPssSignature
-
Create RSA-PSS signature with SHA-256 and generated 2048-bit key pair 创建使用 SHA-256 和生成的 2048 位密钥对的 RSA-PSS 签名
- sha256WithKeyPair() - Static method in class cloud.opencode.base.crypto.signature.RsaSignature
-
Create RSA signature with SHA-256 and generated 2048-bit key pair 创建使用 SHA-256 和生成的 2048 位密钥对的 RSA 签名
- sha256WithRsa() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
RSA-SHA256 signer RSA-SHA256 签名
- sha256WithRsa() - Static method in class cloud.opencode.base.crypto.OpenSign
-
Create RSA-SHA256 signer 创建 RSA-SHA256 签名器
- Sha2Hash - Class in cloud.opencode.base.crypto.hash
-
SHA-2 family hash function implementation - Secure Hash Algorithm 2 (SHA-224, SHA-256, SHA-384, SHA-512) SHA-2 系列哈希函数实现 - 安全哈希算法 2(SHA-224、SHA-256、SHA-384、SHA-512)
- sha3_224() - Static method in class cloud.opencode.base.crypto.hash.Sha3Hash
-
Create SHA3-224 hash function (224-bit digest) 创建 SHA3-224 哈希函数(224 位摘要)
- SHA3_224 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
SHA3-224 algorithm - 224-bit digest
- sha3_256() - Static method in class cloud.opencode.base.crypto.hash.Sha3Hash
-
Create SHA3-256 hash function (256-bit digest) 创建 SHA3-256 哈希函数(256 位摘要)
- sha3_256() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
SHA3-256 digester SHA3-256 摘要器
- sha3_256() - Static method in class cloud.opencode.base.crypto.OpenDigest
-
Create SHA3-256 digester 创建 SHA3-256 摘要器
- SHA3_256 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
SHA3-256 algorithm - 256-bit digest (Recommended)
- SHA3_256 - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Hash
- SHA3_256 - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
SHA3-256 (64 hex chars) | SHA3-256 (64 个十六进制字符)
- sha3_384() - Static method in class cloud.opencode.base.crypto.hash.Sha3Hash
-
Create SHA3-384 hash function (384-bit digest) 创建 SHA3-384 哈希函数(384 位摘要)
- SHA3_384 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
SHA3-384 algorithm - 384-bit digest
- sha3_512() - Static method in class cloud.opencode.base.crypto.hash.Sha3Hash
-
Create SHA3-512 hash function (512-bit digest) 创建 SHA3-512 哈希函数(512 位摘要)
- sha3_512() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
SHA3-512 digester SHA3-512 摘要器
- sha3_512() - Static method in class cloud.opencode.base.crypto.OpenDigest
-
Create SHA3-512 digester 创建 SHA3-512 摘要器
- SHA3_512 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
SHA3-512 algorithm - 512-bit digest
- SHA3_512 - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Hash
- SHA3_512 - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
SHA3-512 (128 hex chars) | SHA3-512 (128 个十六进制字符)
- sha384() - Static method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
-
Create RSA-OAEP cipher with SHA-384 digest 创建使用 SHA-384 摘要的 RSA-OAEP 密码
- sha384() - Static method in class cloud.opencode.base.crypto.hash.Sha2Hash
-
Create SHA-384 hash function (384-bit digest) 创建 SHA-384 哈希函数(384 位摘要)
- sha384() - Static method in class cloud.opencode.base.crypto.kdf.Hkdf
-
Creates an HKDF instance with SHA-384 使用 SHA-384 创建 HKDF 实例
- sha384() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
SHA-384 digester SHA-384 摘要器
- sha384() - Static method in class cloud.opencode.base.crypto.OpenDigest
-
Create SHA-384 digester 创建 SHA-384 摘要器
- sha384() - Static method in class cloud.opencode.base.crypto.signature.RsaPssSignature
-
Create RSA-PSS signature with SHA-384 (3072-bit key recommended) 创建使用 SHA-384 的 RSA-PSS 签名(推荐 3072 位密钥)
- sha384() - Static method in class cloud.opencode.base.crypto.signature.RsaSignature
-
Create RSA signature with SHA-384 (3072-bit key recommended) 创建使用 SHA-384 的 RSA 签名(推荐 3072 位密钥)
- SHA384 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
SHA-384 algorithm - 384-bit digest
- SHA384 - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Hash
- SHA384 - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
SHA-384 (96 hex chars) | SHA-384 (96 个十六进制字符)
- sha384WithRsa() - Static method in class cloud.opencode.base.crypto.OpenSign
-
Create RSA-SHA384 signer 创建 RSA-SHA384 签名器
- Sha3Hash - Class in cloud.opencode.base.crypto.hash
-
SHA-3 family hash function implementation - Secure Hash Algorithm 3 (SHA3-224, SHA3-256, SHA3-384, SHA3-512) SHA-3 系列哈希函数实现 - 安全哈希算法 3(SHA3-224、SHA3-256、SHA3-384、SHA3-512)
- sha512() - Static method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
-
Create RSA-OAEP cipher with SHA-512 digest 创建使用 SHA-512 摘要的 RSA-OAEP 密码
- sha512() - Static method in class cloud.opencode.base.crypto.hash.Sha2Hash
-
Create SHA-512 hash function (512-bit digest) 创建 SHA-512 哈希函数(512 位摘要)
- sha512() - Static method in class cloud.opencode.base.crypto.kdf.Hkdf
-
Creates an HKDF instance with SHA-512 使用 SHA-512 创建 HKDF 实例
- sha512() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
SHA-512 digester SHA-512 摘要器
- sha512() - Static method in class cloud.opencode.base.crypto.OpenDigest
-
Create SHA-512 digester 创建 SHA-512 摘要器
- sha512() - Static method in class cloud.opencode.base.crypto.otp.Hotp
-
Creates an HOTP instance using HmacSHA512.
- sha512() - Static method in class cloud.opencode.base.crypto.otp.Totp
-
Creates a TOTP instance using SHA-512 (30s period, 6 digits).
- sha512() - Static method in class cloud.opencode.base.crypto.password.Pbkdf2Hash
-
Create PBKDF2 hasher with SHA-512 使用 SHA-512 创建 PBKDF2 哈希器
- sha512() - Static method in class cloud.opencode.base.crypto.signature.RsaPssSignature
-
Create RSA-PSS signature with SHA-512 (4096-bit key recommended) 创建使用 SHA-512 的 RSA-PSS 签名(推荐 4096 位密钥)
- sha512() - Static method in class cloud.opencode.base.crypto.signature.RsaSignature
-
Create RSA signature with SHA-512 (4096-bit key recommended) 创建使用 SHA-512 的 RSA 签名(推荐 4096 位密钥)
- SHA512 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
SHA-512 algorithm - 512-bit digest
- SHA512 - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Hash
- SHA512 - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
SHA-512 (128 hex chars) | SHA-512 (128 个十六进制字符)
- sha512WithKeyPair() - Static method in class cloud.opencode.base.crypto.signature.RsaPssSignature
-
Create RSA-PSS signature with SHA-512 and generated 4096-bit key pair 创建使用 SHA-512 和生成的 4096 位密钥对的 RSA-PSS 签名
- sha512WithKeyPair() - Static method in class cloud.opencode.base.crypto.signature.RsaSignature
-
Create RSA signature with SHA-512 and generated 4096-bit key pair 创建使用 SHA-512 和生成的 4096 位密钥对的 RSA 签名
- sha512WithRsa() - Static method in class cloud.opencode.base.crypto.OpenSign
-
Create RSA-SHA512 signer 创建 RSA-SHA512 签名器
- sign() - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Signs and returns the JWT string.
- sign(byte[]) - Method in class cloud.opencode.base.crypto.OpenSign
-
Sign data 签名数据
- sign(byte[]) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- sign(byte[]) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- sign(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- sign(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- sign(byte[]) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Sign data and return signature bytes 签名数据并返回签名字节
- sign(byte[]) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- sign(JwtClaims, String) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Creates a JWT with HMAC-SHA256 using JwtClaims.
- sign(JwtClaims, String, JwtAlgorithm) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Creates a JWT with specified HMAC algorithm.
- sign(InputStream) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- sign(InputStream) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- sign(InputStream) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- sign(InputStream) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- sign(InputStream) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Sign data from input stream 从输入流签名数据
- sign(InputStream) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- sign(String) - Method in class cloud.opencode.base.crypto.OpenSign
-
Sign string (UTF-8) 签名字符串(UTF-8)
- sign(String) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- sign(String) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- sign(String) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- sign(String) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- sign(String) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Sign UTF-8 encoded string data 签名 UTF-8 编码的字符串数据
- sign(String) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- sign(String, String, Duration) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Creates a JWT with HMAC-SHA256.
- signature() - Method in record class cloud.opencode.base.crypto.jwt.JwtUtil.JwtParts
-
Returns the value of the
signaturerecord component. - SignatureAlgorithm - Enum Class in cloud.opencode.base.crypto.enums
-
Digital signature algorithm enumeration - 数字签名算法枚举 数字签名算法的枚举定义
- SignatureEngine - Interface in cloud.opencode.base.crypto.signature
-
Digital signature engine interface - Unified API for signature generation and verification 数字签名引擎接口 - 统一的签名生成和验证 API
- signatureInput() - Method in record class cloud.opencode.base.crypto.jwt.JwtUtil.JwtParts
-
Returns the value of the
signatureInputrecord component. - signBase64(byte[]) - Method in class cloud.opencode.base.crypto.OpenSign
-
Sign data and return as Base64 string 签名并返回 Base64 字符串
- signBase64(byte[]) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- signBase64(byte[]) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- signBase64(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- signBase64(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- signBase64(byte[]) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Sign data and return Base64 encoded signature 签名数据并返回 Base64 编码的签名
- signBase64(byte[]) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- signBase64(String) - Method in class cloud.opencode.base.crypto.OpenSign
-
Sign string and return as Base64 string 签名字符串并返回 Base64 字符串
- signBase64(String) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- signBase64(String) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- signBase64(String) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- signBase64(String) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- signBase64(String) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Sign UTF-8 encoded string and return Base64 signature 签名 UTF-8 编码字符串并返回 Base64 签名
- signBase64(String) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- signEc(JwtClaims, PrivateKey) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Creates a JWT with ECDSA-SHA256 using JwtClaims.
- signEc(JwtClaims, PrivateKey, JwtAlgorithm) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Creates a JWT with specified ECDSA algorithm.
- signEc(String, PrivateKey, Duration) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Creates a JWT with ECDSA-SHA256.
- signer(SignatureAlgorithm) - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
Custom signer 自定义签名器
- signFailed(String, Throwable) - Static method in exception class cloud.opencode.base.crypto.exception.OpenSignatureException
-
Creates an exception for signature generation failures.
- signFile(Path) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- signFile(Path) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- signFile(Path) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- signFile(Path) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- signFile(Path) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Sign file content 签名文件内容
- signFile(Path) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- signHex(byte[]) - Method in class cloud.opencode.base.crypto.OpenSign
-
Sign data and return as hex string 签名并返回十六进制字符串
- signHex(byte[]) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- signHex(byte[]) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- signHex(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- signHex(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- signHex(byte[]) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Sign data and return hexadecimal encoded signature 签名数据并返回十六进制编码的签名
- signHex(byte[]) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- signHex(String) - Method in class cloud.opencode.base.crypto.OpenSign
-
Sign string and return as hex string 签名字符串并返回十六进制字符串
- signRsa(JwtClaims, PrivateKey) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Creates a JWT with RSA-SHA256 using JwtClaims.
- signRsa(JwtClaims, PrivateKey, JwtAlgorithm) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Creates a JWT with specified RSA algorithm.
- signRsa(String, PrivateKey, Duration) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Creates a JWT with RSA-SHA256.
- sm2() - Static method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Create SM2 cipher (requires Bouncy Castle) 创建 SM2 加密(需要 Bouncy Castle)
- sm2() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
SM2 cipher (requires Bouncy Castle) SM2 加密(需要 Bouncy Castle)
- sm2() - Static method in class cloud.opencode.base.crypto.OpenSign
-
Create SM2 signer (requires Bouncy Castle) 创建 SM2 签名器(需要 Bouncy Castle)
- SM2 - Enum constant in enum class cloud.opencode.base.crypto.enums.AsymmetricAlgorithm
-
SM2 algorithm with 256-bit key (Chinese national standard)
- SM2 - Enum constant in enum class cloud.opencode.base.crypto.enums.CurveType
-
SM2 curve (Chinese national standard, sm2p256v1)
- SM2 - Enum constant in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
SM2 signature with SM3 hash (Chinese national standard)
- Sm2Cipher - Class in cloud.opencode.base.crypto.asymmetric
-
SM2 cipher implementation - Chinese national cryptographic standard SM2 密码实现 - 中国国密标准
- sm2Sign() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
SM2 signer (requires Bouncy Castle) SM2 签名(需要 Bouncy Castle)
- Sm2Signature - Class in cloud.opencode.base.crypto.signature
-
SM2 signature implementation (Chinese national cryptographic standard).
- sm3() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
SM3 digester (requires Bouncy Castle) SM3 摘要器(需要 Bouncy Castle)
- sm3() - Static method in class cloud.opencode.base.crypto.OpenDigest
-
Create SM3 digester (requires Bouncy Castle) 创建 SM3 摘要器(需要 Bouncy Castle)
- SM3 - Enum constant in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
SM3 algorithm - 256-bit digest (Chinese national standard)
- Sm3Hash - Class in cloud.opencode.base.crypto.hash
-
SM3 hash function implementation - Chinese national cryptographic standard hash algorithm SM3 哈希函数实现 - 中国国密标准哈希算法
- SM4_CBC - Enum constant in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
SM4-CBC with 128-bit key and PKCS5 padding (Chinese national standard)
- SM4_GCM - Enum constant in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
SM4-GCM with 128-bit key (Chinese national standard AEAD)
- sm4Cbc() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
SM4-CBC cipher (requires Bouncy Castle) SM4-CBC 加密(需要 Bouncy Castle)
- Sm4Cipher - Class in cloud.opencode.base.crypto.symmetric
-
SM4 cipher implementation (Chinese national cryptographic standard).
- sm4Gcm() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
SM4-GCM cipher (requires Bouncy Castle) SM4-GCM 加密(需要 Bouncy Castle)
- split(byte[], int...) - Static method in class cloud.opencode.base.crypto.util.ByteUtil
-
Split byte array into multiple arrays of specified lengths 将字节数组拆分为指定长度的多个数组
- SslContextBuilder - Class in cloud.opencode.base.crypto.ssl
-
SSL Context Builder - Fluent SSL Context Configuration SSL 上下文构建器 - 流式 SSL 上下文配置
- standard() - Static method in class cloud.opencode.base.crypto.policy.CryptoPolicy
-
Returns a standard policy allowing commonly used secure algorithms.
- startAutoRotation() - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Starts automatic key rotation.
- status() - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.VersionedKey
-
Returns the value of the
statusrecord component. - stopAutoRotation() - Method in class cloud.opencode.base.crypto.rotation.KeyRotation
-
Stops automatic key rotation.
- store(String, KeyPair, char[]) - Method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Store key pair in key store 在密钥存储中存储密钥对
- store(String, PrivateKey, char[], Certificate[]) - Method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Store private key with certificate chain in key store 在密钥存储中存储带证书链的私钥
- store(String, SecretKey, char[]) - Method in class cloud.opencode.base.crypto.key.SecureKeyStore
-
Store secret key in key store 在密钥存储中存储对称密钥
- StreamingAead - Class in cloud.opencode.base.crypto.streaming
-
Streaming Authenticated Encryption with Associated Data (AEAD) for large data 用于大数据的流式认证加密(AEAD)
- strict() - Static method in class cloud.opencode.base.crypto.policy.CryptoPolicy
-
Returns a strict policy allowing only the strongest modern algorithms.
- strong() - Static method in class cloud.opencode.base.crypto.password.PasswordPolicy
-
Create a strong password policy 创建强密码策略
- strongPolicy() - Static method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Get strong password policy 获取强密码策略
- subject() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
-
Returns the subject claim.
- subject(String) - Method in class cloud.opencode.base.crypto.jwt.JwtClaims.Builder
-
Sets the subject claim.
- subject(String) - Method in class cloud.opencode.base.crypto.jwt.JwtUtil.Builder
-
Sets the subject claim.
- SUBJECT - Static variable in class cloud.opencode.base.crypto.jwt.JwtClaims
- symmetric(SymmetricAlgorithm) - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
Custom symmetric cipher 自定义对称加密
- symmetricAlgorithm(SymmetricAlgorithm) - Method in class cloud.opencode.base.crypto.envelope.HybridCrypto.Builder
-
Set symmetric algorithm for data encryption 设置用于数据加密的对称算法
- SymmetricAlgorithm - Enum Class in cloud.opencode.base.crypto.enums
-
Symmetric encryption algorithm enumeration - 对称加密算法枚举 对称加密算法的枚举定义
- SymmetricCipher - Interface in cloud.opencode.base.crypto.symmetric
-
Interface for symmetric encryption algorithms (CBC, CTR modes).
T
- tag() - Method in class cloud.opencode.base.crypto.envelope.EncryptedEnvelope
-
Returns the authentication tag.
- tag() - Method in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Hash
- tag() - Method in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.PublicKey
- tag() - Method in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Symmetric
- tagLength(int) - Method in class cloud.opencode.base.crypto.symmetric.AesGcmCipher.Builder
-
Set authentication tag length in bits.
- timestamp() - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent
-
Returns the value of the
timestamprecord component. - timestamp(int) - Static method in class cloud.opencode.base.crypto.random.NonceGenerator
-
Generates a timestamp-based nonce combining current timestamp with random bytes.
- timestamp(int, SecureRandom) - Static method in class cloud.opencode.base.crypto.random.NonceGenerator
-
Generates a timestamp-based nonce combining current timestamp with random bytes.
- tlsV12() - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Sets TLS 1.2 protocol.
- tlsV13() - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Sets TLS 1.3 protocol.
- toBase32(byte[]) - Static method in class cloud.opencode.base.crypto.otp.TotpSecret
-
Encodes a byte array to Base32 string (RFC 4648, no padding).
- toBase64() - Method in class cloud.opencode.base.crypto.envelope.EncryptedEnvelope
-
Serializes this envelope to a Base64 encoded string.
- toBytes() - Method in class cloud.opencode.base.crypto.envelope.EncryptedEnvelope
-
Serializes this envelope to a byte array.
- toBytes(SecretKey) - Static method in class cloud.opencode.base.crypto.key.SecretKeyUtil
-
Convert secret key to byte array 将对称密钥转换为字节数组
- toSslContext() - Method in class cloud.opencode.base.crypto.ssl.CertificatePinner
-
Creates an
SSLContextthat enforces certificate pinning during TLS handshake. - toString() - Method in class cloud.opencode.base.crypto.envelope.EncryptedEnvelope
- toString() - Method in class cloud.opencode.base.crypto.jwt.JwtClaims
- toString() - Method in record class cloud.opencode.base.crypto.jwt.JwtUtil.JwtParts
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.crypto.pgp.PgpKeyPair
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.VersionedKey
-
Returns a string representation of this record class.
- toString() - Method in record class cloud.opencode.base.crypto.util.CryptoDetector.CryptoAnalysis
-
Returns a string representation of this record class.
- toString() - Method in class cloud.opencode.base.crypto.util.SecureBytes
-
Return a safe string representation that does not leak content.
- toString() - Method in record class cloud.opencode.base.crypto.versioned.VersionedPayload
-
Returns a string representation of this record class.
- Totp - Class in cloud.opencode.base.crypto.otp
-
RFC 6238 TOTP (Time-Based One-Time Password) implementation RFC 6238 TOTP(基于时间的一次性密码)实现
- Totp.Builder - Class in cloud.opencode.base.crypto.otp
-
Builder for constructing Totp instances with custom configuration.
- TotpSecret - Class in cloud.opencode.base.crypto.otp
-
OTP secret key management utilities for TOTP/HOTP TOTP/HOTP 的 OTP 密钥管理工具
- TRUST_ALL_ENABLED_PROPERTY - Static variable in class cloud.opencode.base.crypto.ssl.TrustAllManager
-
System property to enable TrustAllManager in production (NOT recommended) 在生产环境启用TrustAllManager的系统属性(不推荐)
- trustAll() - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Configures to trust all certificates (DANGEROUS - development only).
- TrustAllManager - Class in cloud.opencode.base.crypto.ssl
-
Trust All Manager - X509TrustManager that Trusts All Certificates 信任所有管理器 - 信任所有证书的 X509TrustManager
- trustManagers(TrustManager...) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Sets trust managers.
- trustStore(InputStream, String) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Loads truststore from input stream.
- trustStore(InputStream, String, String) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Loads truststore from input stream with type.
- trustStore(Path, String) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Loads truststore from file.
- trustStore(Path, String, String) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Loads truststore from file with type.
- TWOFISH - Enum constant in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Symmetric
- type() - Method in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
Returns the algorithm type ("symmetric" or "asymmetric").
- type() - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent
-
Returns the value of the
typerecord component. - type(Argon2Type) - Method in class cloud.opencode.base.crypto.kdf.Argon2Kdf.Builder
-
Sets the Argon2 type 设置 Argon2 类型
- type(Argon2Type) - Method in class cloud.opencode.base.crypto.password.Argon2Hash.Builder
-
Set the Argon2 variant type 设置 Argon2 变体类型
- typeMismatch(String, String) - Static method in exception class cloud.opencode.base.crypto.exception.OpenKeyException
-
Creates an exception for key type mismatch.
U
- uniformDistribution() - Method in record class cloud.opencode.base.crypto.util.CryptoDetector.CryptoAnalysis
-
Returns the value of the
uniformDistributionrecord component. - UNKNOWN - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.EncodingType
-
Unknown or plain text | 未知或纯文本
- UNKNOWN - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
Unknown format | 未知格式
- UNKNOWN - Enum constant in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
Unknown format | 未知格式
- unpadPkcs7(byte[]) - Static method in class cloud.opencode.base.crypto.util.ByteUtil
-
Remove PKCS#7 padding from data 从数据中移除PKCS#7填充
- update(byte[]) - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- update(byte[]) - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- update(byte[]) - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Updates the MAC with a chunk of data (for incremental computation) 使用数据块更新 MAC(用于增量计算)
- update(byte[]) - Method in class cloud.opencode.base.crypto.mac.Poly1305
- update(byte[]) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Update digest with data 更新摘要数据
- update(byte[]) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- update(byte[]) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- update(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- update(byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- update(byte[]) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Update the signature with additional data (for multi-part signing) 使用额外数据更新签名(用于多部分签名)
- update(byte[]) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- update(byte[], int, int) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Update digest with partial data 更新摘要部分数据
- update(String) - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- update(String) - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- update(String) - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Updates the MAC with a string (UTF-8 encoded) 使用字符串更新 MAC(UTF-8 编码)
- update(String) - Method in class cloud.opencode.base.crypto.mac.Poly1305
- update(String) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Update digest with string (UTF-8) 更新摘要字符串(UTF-8)
- update(String) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- update(String) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- update(String) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- update(String) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- update(String) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Update the signature with UTF-8 encoded string 使用 UTF-8 编码字符串更新签名
- update(String) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- update(ByteBuffer) - Method in class cloud.opencode.base.crypto.OpenDigest
-
Update digest with ByteBuffer 更新摘要 ByteBuffer
- userId() - Method in record class cloud.opencode.base.crypto.pgp.PgpKeyPair
-
Returns the value of the
userIdrecord component.
V
- validate(String) - Method in class cloud.opencode.base.crypto.password.PasswordPolicy
-
Validate password against this policy 根据此策略验证密码
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.enums.AsymmetricAlgorithm
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.enums.CurveType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.enums.PasswordHashAlgorithm
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.password.Argon2Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Hash
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.PublicKey
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Symmetric
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.rotation.KeyRotation.KeyStatus
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.sealedbox.SealedBox.Algorithm
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.symmetric.CipherMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.symmetric.Padding
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.util.CryptoDetector.EncodingType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class cloud.opencode.base.crypto.enums.AsymmetricAlgorithm
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.enums.CurveType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.enums.DigestAlgorithm
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.enums.PasswordHashAlgorithm
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.enums.SignatureAlgorithm
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.enums.SymmetricAlgorithm
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.jwt.JwtAlgorithm
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.password.Argon2Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Hash
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.PublicKey
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.pgp.PgpAlgorithm.Symmetric
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.rotation.KeyRotation.KeyStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.sealedbox.SealedBox.Algorithm
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.symmetric.CipherMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.symmetric.Padding
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.util.CryptoDetector.EncodingType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.util.CryptoDetector.HashFormat
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cloud.opencode.base.crypto.util.CryptoDetector.KeyFormat
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verify(byte[], byte[]) - Method in class cloud.opencode.base.crypto.hash.HmacFunction
-
Verify MAC for given data using constant-time comparison 使用恒定时间比较验证给定数据的消息认证码
- verify(byte[], byte[]) - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- verify(byte[], byte[]) - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- verify(byte[], byte[]) - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Verifies MAC for the given data using constant-time comparison 使用常量时间比较验证给定数据的 MAC 值
- verify(byte[], byte[]) - Method in class cloud.opencode.base.crypto.mac.Poly1305
- verify(byte[], byte[]) - Method in class cloud.opencode.base.crypto.OpenSign
-
Verify signature 验证签名
- verify(byte[], byte[]) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- verify(byte[], byte[]) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- verify(byte[], byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- verify(byte[], byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- verify(byte[], byte[]) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Verify signature for given data 验证给定数据的签名
- verify(byte[], byte[]) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- verify(byte[], long, String) - Method in class cloud.opencode.base.crypto.otp.Hotp
-
Verifies a one-time password against the given secret and counter (6 digits, no look-ahead).
- verify(byte[], long, String, int) - Method in class cloud.opencode.base.crypto.otp.Hotp
-
Verifies a one-time password with a look-ahead window for counter synchronization.
- verify(byte[], String) - Method in class cloud.opencode.base.crypto.otp.Totp
-
Verifies a TOTP code against the current time with default window size (1).
- verify(byte[], String, int) - Method in class cloud.opencode.base.crypto.otp.Totp
-
Verifies a TOTP code against the current time with the specified window size.
- verify(byte[], String, Instant, int) - Method in class cloud.opencode.base.crypto.otp.Totp
-
Verifies a TOTP code against the specified time with the given window size.
- verify(char[], String) - Method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Verify password from char array against hash 验证字符数组密码与哈希
- verify(char[], String) - Method in class cloud.opencode.base.crypto.password.Argon2Hash
- verify(char[], String) - Method in class cloud.opencode.base.crypto.password.BCryptHash
- verify(char[], String) - Method in interface cloud.opencode.base.crypto.password.PasswordHash
-
Verify a password against a hash using character array 使用字符数组验证密码与哈希值
- verify(char[], String) - Method in class cloud.opencode.base.crypto.password.Pbkdf2Hash
- verify(char[], String) - Method in class cloud.opencode.base.crypto.password.SCryptHash
- verify(String, byte[]) - Static method in class cloud.opencode.base.crypto.jwt.JwtUtil
-
Verifies a JWT with HMAC secret bytes and returns claims.
- verify(String, byte[]) - Method in class cloud.opencode.base.crypto.OpenSign
-
Verify signature of string 验证字符串签名
- verify(String, byte[]) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- verify(String, byte[]) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- verify(String, byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- verify(String, byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- verify(String, byte[]) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Verify signature for UTF-8 encoded string 验证 UTF-8 编码字符串的签名
- verify(String, byte[]) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- verify(String, String) - Static method in class cloud.opencode.base.crypto.jwt.JwtUtil
-
Verifies a JWT with HMAC secret and returns claims.
- verify(String, String) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Verifies a JWT with HMAC secret.
- verify(String, String) - Method in class cloud.opencode.base.crypto.OpenPasswordHash
-
Verify password against hash 验证密码与哈希
- verify(String, String) - Method in class cloud.opencode.base.crypto.password.Argon2Hash
- verify(String, String) - Method in class cloud.opencode.base.crypto.password.BCryptHash
- verify(String, String) - Method in interface cloud.opencode.base.crypto.password.PasswordHash
-
Verify a password against a hash using string 使用字符串验证密码与哈希值
- verify(String, String) - Method in class cloud.opencode.base.crypto.password.Pbkdf2Hash
- verify(String, String) - Method in class cloud.opencode.base.crypto.password.SCryptHash
- verify(String, PublicKey) - Static method in class cloud.opencode.base.crypto.jwt.JwtUtil
-
Verifies a JWT with public key and returns claims.
- verify(String, PublicKey) - Static method in class cloud.opencode.base.crypto.OpenJwt
-
Verifies a JWT with public key.
- verifyBase64(byte[], String) - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- verifyBase64(byte[], String) - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- verifyBase64(byte[], String) - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Verifies MAC from Base64 string using constant-time comparison 使用常量时间比较验证 Base64 字符串的 MAC 值
- verifyBase64(byte[], String) - Method in class cloud.opencode.base.crypto.mac.Poly1305
- verifyBase64(byte[], String) - Method in class cloud.opencode.base.crypto.OpenSign
-
Verify Base64-encoded signature 验证 Base64 编码的签名
- verifyBase64(byte[], String) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- verifyBase64(byte[], String) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- verifyBase64(byte[], String) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- verifyBase64(byte[], String) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- verifyBase64(byte[], String) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Verify Base64 encoded signature 验证 Base64 编码的签名
- verifyBase64(byte[], String) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- verifyBase64(String, String) - Method in class cloud.opencode.base.crypto.OpenSign
-
Verify Base64-encoded signature of string 验证字符串的 Base64 编码签名
- verifyBase64(String, String) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- verifyBase64(String, String) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- verifyBase64(String, String) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- verifyBase64(String, String) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- verifyBase64(String, String) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Verify Base64 encoded signature for string data 验证字符串数据的 Base64 编码签名
- verifyBase64(String, String) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- verifyFailed(String, Throwable) - Static method in exception class cloud.opencode.base.crypto.exception.OpenSignatureException
-
Creates an exception for signature verification failures.
- verifyFile(Path, byte[]) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- verifyFile(Path, byte[]) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- verifyFile(Path, byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- verifyFile(Path, byte[]) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- verifyFile(Path, byte[]) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Verify signature for file content 验证文件内容的签名
- verifyFile(Path, byte[]) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- verifyHex(byte[], String) - Method in class cloud.opencode.base.crypto.mac.HmacSha256
- verifyHex(byte[], String) - Method in class cloud.opencode.base.crypto.mac.HmacSha512
- verifyHex(byte[], String) - Method in interface cloud.opencode.base.crypto.mac.Mac
-
Verifies MAC from hexadecimal string using constant-time comparison 使用常量时间比较验证十六进制字符串的 MAC 值
- verifyHex(byte[], String) - Method in class cloud.opencode.base.crypto.mac.Poly1305
- verifyHex(byte[], String) - Method in class cloud.opencode.base.crypto.OpenSign
-
Verify hex-encoded signature 验证十六进制编码的签名
- verifyHex(byte[], String) - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
- verifyHex(byte[], String) - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
- verifyHex(byte[], String) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
- verifyHex(byte[], String) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
- verifyHex(byte[], String) - Method in interface cloud.opencode.base.crypto.signature.SignatureEngine
-
Verify hexadecimal encoded signature 验证十六进制编码的签名
- verifyHex(byte[], String) - Method in class cloud.opencode.base.crypto.signature.Sm2Signature
- verifyHex(String, String) - Method in class cloud.opencode.base.crypto.OpenSign
-
Verify hex-encoded signature of string 验证字符串的十六进制编码签名
- version() - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.RotationEvent
-
Returns the value of the
versionrecord component. - version() - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.VersionedKey
-
Returns the value of the
versionrecord component. - version() - Method in record class cloud.opencode.base.crypto.versioned.VersionedPayload
-
Returns the value of the
versionrecord component. - VersionedCipher - Class in cloud.opencode.base.crypto.versioned
-
Versioned cipher supporting multiple algorithm versions for seamless key/algorithm rotation.
- VersionedCipher.Builder - Class in cloud.opencode.base.crypto.versioned
-
Builder for constructing
VersionedCipherinstances. - VersionedKey(String, long, K, Instant, KeyRotation.KeyStatus) - Constructor for record class cloud.opencode.base.crypto.rotation.KeyRotation.VersionedKey
-
Creates an instance of a
VersionedKeyrecord class. - VersionedPayload - Record Class in cloud.opencode.base.crypto.versioned
-
Immutable record representing a versioned cipher payload with serialization support.
- VersionedPayload(int, String, byte[]) - Constructor for record class cloud.opencode.base.crypto.versioned.VersionedPayload
-
Compact constructor with parameter validation.
W
- withCompression(boolean) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Enables or disables compression.
- withCost(int) - Static method in class cloud.opencode.base.crypto.password.BCryptHash
-
Create BCrypt hasher with custom cost factor 使用自定义成本因子创建 BCrypt 哈希器
- withCurve(CurveType) - Static method in class cloud.opencode.base.crypto.asymmetric.EccCipher
-
Create ECC cipher with specified curve 创建使用指定曲线的 ECC 密码
- withCurve(CurveType) - Static method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
-
Creates an ECDH engine with the specified curve 创建使用指定曲线的 ECDH 引擎
- withCurve(CurveType) - Static method in class cloud.opencode.base.crypto.signature.EcdsaSignature
-
Create ECDSA signature with custom curve type 创建使用自定义曲线类型的 ECDSA 签名
- withExtraCA(String) - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Creates a SSLContext that trusts the JVM system CA store plus a PEM-encoded CA.
- withExtraCA(String) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Merges the JVM default system trust store with a PEM-encoded CA certificate string.
- withExtraCA(Path) - Static method in class cloud.opencode.base.crypto.ssl.OpenSsl
-
Creates a SSLContext that trusts the JVM system CA store plus an extra CA certificate.
- withExtraCA(Path) - Method in class cloud.opencode.base.crypto.ssl.SslContextBuilder
-
Merges the JVM default system trust store with one or more extra PEM CA certificates.
- withGeneratedKeyPair() - Static method in class cloud.opencode.base.crypto.asymmetric.Sm2Cipher
-
Create SM2 cipher with generated key pair 创建带生成密钥对的 SM2 密码
- withGeneratedKeyPair() - Static method in class cloud.opencode.base.crypto.keyexchange.X25519Engine
-
Creates a new X25519 engine instance with a generated key pair 创建新的 X25519 引擎实例并生成密钥对
- withGeneratedKeyPair() - Static method in class cloud.opencode.base.crypto.keyexchange.X448Engine
-
Creates a new X448 engine instance with a generated key pair 创建新的 X448 引擎实例并生成密钥对
- withGeneratedKeyPair() - Method in class cloud.opencode.base.crypto.OpenAsymmetric
-
Generate key pair and set it 生成密钥对并设置
- withGeneratedKeyPair() - Method in class cloud.opencode.base.crypto.OpenSign
-
Generate key pair and set it 生成密钥对并设置
- withGeneratedKeyPair() - Method in class cloud.opencode.base.crypto.signature.EcdsaSignature
-
Generate a new EC key pair for the configured curve 为配置的曲线生成新的 EC 密钥对
- withGeneratedKeyPair() - Method in class cloud.opencode.base.crypto.signature.EddsaSignature
-
Generate a new EdDSA key pair for the configured algorithm 为配置的算法生成新的 EdDSA 密钥对
- withGeneratedKeyPair(int) - Static method in class cloud.opencode.base.crypto.asymmetric.RsaCipher
-
Create RSA cipher with generated key pair of specified size 创建带指定大小密钥对的 RSA 密码
- withGeneratedKeyPair(int) - Static method in class cloud.opencode.base.crypto.asymmetric.RsaOaepCipher
-
Create RSA-OAEP cipher with generated key pair 创建带生成密钥对的 RSA-OAEP 密码
- withGeneratedKeyPair(int) - Method in class cloud.opencode.base.crypto.signature.RsaPssSignature
-
Generate a new RSA key pair of specified size 生成指定大小的新 RSA 密钥对
- withGeneratedKeyPair(int) - Method in class cloud.opencode.base.crypto.signature.RsaSignature
-
Generate a new RSA key pair of specified size 生成指定大小的新 RSA 密钥对
- withGeneratedKeyPair(CurveType) - Static method in class cloud.opencode.base.crypto.asymmetric.EccCipher
-
Create ECC cipher with generated key pair 创建带生成密钥对的 ECC 密码
- withGeneratedKeyPair(CurveType) - Static method in class cloud.opencode.base.crypto.keyexchange.EcdhEngine
-
Creates an ECDH engine with the specified curve and generates a key pair 创建使用指定曲线的 ECDH 引擎并生成密钥对
- withIntegrityCheck(boolean) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Enables or disables integrity check.
- withKeyPair(PgpKeyPair, String) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Sets the key pair for both encryption and decryption.
- withPublicKey(String) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Sets the public key from armored ASCII string.
- withPublicKey(PGPPublicKey) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Sets the public key for encryption.
- withSecretKey(String, String) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Sets the secret key from armored ASCII string.
- withSecretKey(PGPSecretKey, String) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Sets the secret key for decryption.
- withStatus(KeyRotation.KeyStatus) - Method in record class cloud.opencode.base.crypto.rotation.KeyRotation.VersionedKey
- withSymmetricAlgorithm(PgpAlgorithm.Symmetric) - Method in class cloud.opencode.base.crypto.pgp.PgpCipher
-
Sets the symmetric algorithm for encryption.
- workFactor(int) - Method in class cloud.opencode.base.crypto.kdf.Scrypt.Builder
-
Sets the CPU/memory cost parameter (N) 设置 CPU/内存成本参数(N)
- workFactor(int) - Method in class cloud.opencode.base.crypto.password.SCryptHash.Builder
-
Set CPU/memory cost parameter (N) 设置 CPU/内存成本参数(N)
- wrap(byte[]) - Static method in class cloud.opencode.base.crypto.util.SecureBytes
-
Create a SecureBytes instance that takes ownership of the given array (zero-copy).
X
- x25519() - Static method in class cloud.opencode.base.crypto.OpenCrypto
-
X25519 key exchange (recommended) X25519 密钥协商(推荐)
- X25519_AES_GCM - Enum constant in enum class cloud.opencode.base.crypto.sealedbox.SealedBox.Algorithm
-
X25519 key exchange with AES-256-GCM
- x25519ChaCha20() - Static method in class cloud.opencode.base.crypto.envelope.EnvelopeCrypto
-
Create envelope crypto with X25519 key agreement and ChaCha20-Poly1305.
- x25519ChaCha20() - Static method in class cloud.opencode.base.crypto.envelope.HybridCrypto
-
Create hybrid crypto with X25519 and ChaCha20 创建使用 X25519 和 ChaCha20 的混合加密
- X25519Engine - Class in cloud.opencode.base.crypto.keyexchange
-
X25519 key exchange engine (Curve25519 ECDH) - Recommended for most applications X25519 密钥协商引擎 - 推荐用于大多数应用场景
- X448Engine - Class in cloud.opencode.base.crypto.keyexchange
-
X448 key exchange engine (Curve448 ECDH) - Higher security level than X25519 X448 密钥协商引擎 - 比 X25519 提供更高的安全级别
- xor(byte[], byte[]) - Static method in class cloud.opencode.base.crypto.util.ByteUtil
-
XOR two byte arrays 对两个字节数组执行异或操作
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form