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.Verify
decryptWith(org.bouncycastle.openpgp.PGPSecretKeyRingCollection secretKeyRings)
Decrypt the encrypted data using the secret keys found in the providedPGPSecretKeyRingCollection
.DecryptionBuilderInterface.Verify
decryptWith(SecretKeyRingProtector decryptor, org.bouncycastle.openpgp.PGPSecretKeyRingCollection secretKeyRings)
Decrypt the encrypted data using the secret keys found in the providedPGPSecretKeyRingCollection
.DecryptionBuilderInterface.Verify
decryptWith(Passphrase passphrase)
Decrypt the encrypted data using a passphrase.DecryptionBuilderInterface.Verify
doNotDecrypt()
-
-
-
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 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()
-
-