Interface DecryptionBuilderInterface.DecryptWith
-
- Enclosing interface:
- DecryptionBuilderInterface
public static interface DecryptionBuilderInterface.DecryptWith
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DecryptionBuilderInterface.VerifydecryptWith(org.bouncycastle.openpgp.PGPSecretKeyRingCollection secretKeyRings)Decrypt the encrypted data using the secret keys found in the providedPGPSecretKeyRingCollection.DecryptionBuilderInterface.VerifydecryptWith(SecretKeyRingProtector decryptor, org.bouncycastle.openpgp.PGPSecretKeyRing secretKeyRing)Decrypt the encrypted data using the providedPGPSecretKeyRing.DecryptionBuilderInterface.VerifydecryptWith(SecretKeyRingProtector decryptor, org.bouncycastle.openpgp.PGPSecretKeyRingCollection secretKeyRings)Decrypt the encrypted data using the secret keys found in the providedPGPSecretKeyRingCollection.DecryptionBuilderInterface.VerifydecryptWith(Passphrase passphrase)Decrypt the encrypted data using a passphrase.DecryptionBuilderInterface.VerifydoNotDecrypt()Do not attempt to decrypt the provided data.
-
-
-
Method Detail
-
decryptWith
default DecryptionBuilderInterface.Verify decryptWith(@Nonnull org.bouncycastle.openpgp.PGPSecretKeyRingCollection secretKeyRings)
Decrypt the encrypted data using the secret keys found in the providedPGPSecretKeyRingCollection. Here it is assumed that the secret keys are not password protected. For password protected secret keys usedecryptWith(SecretKeyRingProtector, PGPSecretKeyRingCollection)and pass in aPasswordBasedSecretKeyRingProtector.- Parameters:
secretKeyRings- secret keys- Returns:
- api handle
-
decryptWith
DecryptionBuilderInterface.Verify decryptWith(@Nonnull SecretKeyRingProtector decryptor, @Nonnull org.bouncycastle.openpgp.PGPSecretKeyRingCollection secretKeyRings)
Decrypt the encrypted data using the secret keys found in the providedPGPSecretKeyRingCollection. The secret keys are being unlocked by the providedSecretKeyRingProtector.- Parameters:
decryptor- for unlocking locked secret keyssecretKeyRings- secret keys- Returns:
- api handle
-
decryptWith
DecryptionBuilderInterface.Verify decryptWith(@Nonnull SecretKeyRingProtector decryptor, @Nonnull org.bouncycastle.openpgp.PGPSecretKeyRing secretKeyRing) throws org.bouncycastle.openpgp.PGPException, java.io.IOException
Decrypt the encrypted data using the providedPGPSecretKeyRing. The secret key is unlocked by the providedSecretKeyRingProtector.- Parameters:
decryptor- for unlocking locked secret keysecretKeyRing- secret key- Returns:
- api handle
- Throws:
org.bouncycastle.openpgp.PGPExceptionjava.io.IOException
-
decryptWith
DecryptionBuilderInterface.Verify decryptWith(@Nonnull Passphrase passphrase)
Decrypt the encrypted data using a passphrase. Note: The passphrase MUST NOT be empty.- Parameters:
passphrase- passphrase- Returns:
- api handle
-
doNotDecrypt
DecryptionBuilderInterface.Verify doNotDecrypt()
Do not attempt to decrypt the provided data. Useful for signature verification of signed-only data.- Returns:
- api handle
-
-