Uses of Record Class
cloud.opencode.base.crypto.pgp.PgpKeyPair
Packages that use PgpKeyPair
-
Uses of PgpKeyPair in cloud.opencode.base.crypto
Methods in cloud.opencode.base.crypto that return PgpKeyPairModifier and TypeMethodDescriptionstatic PgpKeyPairOpenPgp.generateKeyPair(String userId, String passphrase) Generates a new PGP key pair with default 4096-bit RSA.static PgpKeyPairOpenPgp.generateKeyPair(String userId, String passphrase, int keySize) Generates a new PGP key pair with specified key size.static PgpKeyPairOpenPgp.importKeyPair(String armoredSecretKey, String passphrase) Imports a key pair from armored ASCII format.Methods in cloud.opencode.base.crypto with parameters of type PgpKeyPairModifier and TypeMethodDescriptionstatic StringOpenPgp.decrypt(String armoredMessage, PgpKeyPair keyPair, String passphrase) Decrypts an armored message using the key pair.static StringOpenPgp.encrypt(String plaintext, PgpKeyPair keyPair) Encrypts a message using the key pair's public key.static StringOpenPgp.exportPublicKey(PgpKeyPair keyPair) Exports the public key to armored ASCII format.static StringOpenPgp.exportSecretKey(PgpKeyPair keyPair) Exports the secret key to armored ASCII format. -
Uses of PgpKeyPair in cloud.opencode.base.crypto.pgp
Methods in cloud.opencode.base.crypto.pgp that return PgpKeyPairModifier and TypeMethodDescriptionstatic PgpKeyPairPgpKeyPair.fromSecretKey(org.bouncycastle.openpgp.PGPSecretKey secretKey, String userId) Creates a PGP key pair from secret key (derives public key automatically).static PgpKeyPairPgpKeyUtil.generateKeyPair(String userId, String passphrase) Generates a new PGP key pair with RSA algorithm.static PgpKeyPairPgpKeyUtil.generateKeyPair(String userId, String passphrase, int keySize) Generates a new PGP key pair with RSA algorithm and specified key size.static PgpKeyPairPgpKeyUtil.importKeyPair(String armoredSecretKey, String passphrase) Imports a PGP key pair from armored ASCII format.Methods in cloud.opencode.base.crypto.pgp with parameters of type PgpKeyPairModifier and TypeMethodDescriptionPgpCipher.withKeyPair(PgpKeyPair keyPair, String passphrase) Sets the key pair for both encryption and decryption.