Interface DecryptionBuilderInterface.Verify
-
- All Superinterfaces:
DecryptionBuilderInterface.VerifyWith
- Enclosing interface:
- DecryptionBuilderInterface
public static interface DecryptionBuilderInterface.Verify extends DecryptionBuilderInterface.VerifyWith
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DecryptionBuilderInterface.BuilddoNotVerify()Instruct theDecryptionStreamto not verify any signatures.default DecryptionBuilderInterface.VerifyWithverifyDetachedSignature(byte[] bytes)Pass in one or more detached signatures to verify.DecryptionBuilderInterface.VerifyWithverifyDetachedSignature(java.io.InputStream inputStream)Pass in one or more detached signatures to verify.default DecryptionBuilderInterface.VerifyWithverifyDetachedSignature(org.bouncycastle.openpgp.PGPSignature signature)Pass in a detached signature to verify.DecryptionBuilderInterface.VerifyWithverifyDetachedSignatures(java.util.List<org.bouncycastle.openpgp.PGPSignature> signatures)Pass in a list of detached signatures to verify.DecryptionBuilderInterface.HandleMissingPublicKeysverifyWith(java.util.Set<org.bouncycastle.openpgp.PGPPublicKeyRing> publicKeyRings)Pass in a set of trusted public keys to verify the signatures with.DecryptionBuilderInterface.HandleMissingPublicKeysverifyWith(java.util.Set<OpenPgpV4Fingerprint> trustedFingerprints, org.bouncycastle.openpgp.PGPPublicKeyRingCollection publicKeyRings)Pass in a collection of public keys along with a set of fingerprints of those keys that shall be used to verify the signatures.default DecryptionBuilderInterface.HandleMissingPublicKeysverifyWith(org.bouncycastle.openpgp.PGPPublicKeyRing publicKeyRing)Pass in a trusted public key ring to verify the signature with.DecryptionBuilderInterface.HandleMissingPublicKeysverifyWith(org.bouncycastle.openpgp.PGPPublicKeyRingCollection publicKeyRings)Pass in a collection of public keys to verify the signatures with.default DecryptionBuilderInterface.HandleMissingPublicKeysverifyWith(OpenPgpV4Fingerprint trustedFingerprint, org.bouncycastle.openpgp.PGPPublicKeyRingCollection publicKeyRings)Pass in a collection of public keys along with the fingerprint of the key that shall be used to verify the signatures.
-
-
-
Method Detail
-
verifyWith
DecryptionBuilderInterface.HandleMissingPublicKeys verifyWith(@Nonnull org.bouncycastle.openpgp.PGPPublicKeyRingCollection publicKeyRings)
Description copied from interface:DecryptionBuilderInterface.VerifyWithPass in a collection of public keys to verify the signatures with.- Specified by:
verifyWithin interfaceDecryptionBuilderInterface.VerifyWith- Parameters:
publicKeyRings- public keys- Returns:
- api handle
-
verifyWith
default DecryptionBuilderInterface.HandleMissingPublicKeys verifyWith(@Nonnull OpenPgpV4Fingerprint trustedFingerprint, @Nonnull org.bouncycastle.openpgp.PGPPublicKeyRingCollection publicKeyRings)
Description copied from interface:DecryptionBuilderInterface.VerifyWithPass in a collection of public keys along with the fingerprint of the key that shall be used to verify the signatures.- Specified by:
verifyWithin interfaceDecryptionBuilderInterface.VerifyWith- Parameters:
trustedFingerprint-OpenPgpV4Fingerprintof the public key that shall be used to verify the signatures.publicKeyRings- public keys- Returns:
- api handle
-
verifyWith
DecryptionBuilderInterface.HandleMissingPublicKeys verifyWith(@Nonnull java.util.Set<OpenPgpV4Fingerprint> trustedFingerprints, @Nonnull org.bouncycastle.openpgp.PGPPublicKeyRingCollection publicKeyRings)
Description copied from interface:DecryptionBuilderInterface.VerifyWithPass in a collection of public keys along with a set of fingerprints of those keys that shall be used to verify the signatures.- Specified by:
verifyWithin interfaceDecryptionBuilderInterface.VerifyWith- Parameters:
trustedFingerprints- set of trustedOpenPgpV4Fingerprints.publicKeyRings- public keys- Returns:
- api handle
-
verifyWith
default DecryptionBuilderInterface.HandleMissingPublicKeys verifyWith(@Nonnull org.bouncycastle.openpgp.PGPPublicKeyRing publicKeyRing)
Description copied from interface:DecryptionBuilderInterface.VerifyWithPass in a trusted public key ring to verify the signature with.- Specified by:
verifyWithin interfaceDecryptionBuilderInterface.VerifyWith- Parameters:
publicKeyRing- public key- Returns:
- api handle
-
verifyWith
DecryptionBuilderInterface.HandleMissingPublicKeys verifyWith(@Nonnull java.util.Set<org.bouncycastle.openpgp.PGPPublicKeyRing> publicKeyRings)
Description copied from interface:DecryptionBuilderInterface.VerifyWithPass in a set of trusted public keys to verify the signatures with.- Specified by:
verifyWithin interfaceDecryptionBuilderInterface.VerifyWith- Parameters:
publicKeyRings- public keys- Returns:
- api handle
-
verifyDetachedSignature
default DecryptionBuilderInterface.VerifyWith verifyDetachedSignature(@Nonnull byte[] bytes) throws java.io.IOException, org.bouncycastle.openpgp.PGPException
Pass in one or more detached signatures to verify.- Parameters:
bytes- detached signatures (ascii armored or binary).- Returns:
- api handle
- Throws:
java.io.IOException- if some IO error occursorg.bouncycastle.openpgp.PGPException- if the detached signatures are malformed
-
verifyDetachedSignature
DecryptionBuilderInterface.VerifyWith verifyDetachedSignature(@Nonnull java.io.InputStream inputStream) throws java.io.IOException, org.bouncycastle.openpgp.PGPException
Pass in one or more detached signatures to verify.- Parameters:
inputStream- detached signature (ascii armored or binary).- Returns:
- api handle
- Throws:
java.io.IOException- in case something is wrong with the input streamorg.bouncycastle.openpgp.PGPException- if the detached signatures are malformed
-
verifyDetachedSignature
default DecryptionBuilderInterface.VerifyWith verifyDetachedSignature(@Nonnull org.bouncycastle.openpgp.PGPSignature signature)
Pass in a detached signature to verify.- Parameters:
signature- detached signature- Returns:
- api handle
-
verifyDetachedSignatures
DecryptionBuilderInterface.VerifyWith verifyDetachedSignatures(@Nonnull java.util.List<org.bouncycastle.openpgp.PGPSignature> signatures)
Pass in a list of detached signatures to verify.- Parameters:
signatures- detached signatures- Returns:
- api handle
-
doNotVerify
DecryptionBuilderInterface.Build doNotVerify()
Instruct theDecryptionStreamto not verify any signatures.- Returns:
- api handle
-
-