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.Build
doNotVerify()
Instruct theDecryptionStream
to not verify any signatures.default DecryptionBuilderInterface.VerifyWith
verifyDetachedSignature(byte[] bytes)
Pass in one or more detached signatures to verify.DecryptionBuilderInterface.VerifyWith
verifyDetachedSignature(java.io.InputStream inputStream)
Pass in one or more detached signatures to verify.default DecryptionBuilderInterface.VerifyWith
verifyDetachedSignature(org.bouncycastle.openpgp.PGPSignature signature)
Pass in a detached signature to verify.DecryptionBuilderInterface.VerifyWith
verifyDetachedSignatures(java.util.List<org.bouncycastle.openpgp.PGPSignature> signatures)
Pass in a list of detached signatures to verify.DecryptionBuilderInterface.HandleMissingPublicKeys
verifyWith(java.util.Set<org.bouncycastle.openpgp.PGPPublicKeyRing> publicKeyRings)
Pass in a set of trusted public keys to verify the signatures with.DecryptionBuilderInterface.HandleMissingPublicKeys
verifyWith(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.HandleMissingPublicKeys
verifyWith(org.bouncycastle.openpgp.PGPPublicKeyRing publicKeyRing)
Pass in a trusted public key ring to verify the signature with.DecryptionBuilderInterface.HandleMissingPublicKeys
verifyWith(org.bouncycastle.openpgp.PGPPublicKeyRingCollection publicKeyRings)
Pass in a collection of public keys to verify the signatures with.default DecryptionBuilderInterface.HandleMissingPublicKeys
verifyWith(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.VerifyWith
Pass in a collection of public keys to verify the signatures with.- Specified by:
verifyWith
in 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.VerifyWith
Pass in a collection of public keys along with the fingerprint of the key that shall be used to verify the signatures.- Specified by:
verifyWith
in interfaceDecryptionBuilderInterface.VerifyWith
- Parameters:
trustedFingerprint
-OpenPgpV4Fingerprint
of 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.VerifyWith
Pass 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:
verifyWith
in 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.VerifyWith
Pass in a trusted public key ring to verify the signature with.- Specified by:
verifyWith
in 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.VerifyWith
Pass in a set of trusted public keys to verify the signatures with.- Specified by:
verifyWith
in 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 theDecryptionStream
to not verify any signatures.- Returns:
- api handle
-
-