Interface EncryptionBuilderInterface.SignWith
-
- All Known Subinterfaces:
EncryptionBuilderInterface.SignWithOrDontSign,EncryptionBuilderInterface.ToRecipientsOrSign
- Enclosing interface:
- EncryptionBuilderInterface
public static interface EncryptionBuilderInterface.SignWith
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default EncryptionBuilderInterface.AdditionalSignWithsignDetachedWith(SecretKeyRingProtector secretKeyDecryptor, org.bouncycastle.openpgp.PGPSecretKeyRing signingKey)Create a detached signature using the provided secret key.default EncryptionBuilderInterface.AdditionalSignWithsignDetachedWith(SecretKeyRingProtector secretKeyDecryptor, org.bouncycastle.openpgp.PGPSecretKeyRing signingKey, java.lang.String userId)Create a detached signature using the provided secret key with the algorithm preferences of the provided user-id.EncryptionBuilderInterface.AdditionalSignWithsignDetachedWith(SecretKeyRingProtector secretKeyDecryptor, org.bouncycastle.openpgp.PGPSecretKeyRing signingKey, java.lang.String userId, DocumentSignatureType signatureType)Create a detached signature using the provided secret key with the algorithm preferences of the provided user-id.default EncryptionBuilderInterface.AdditionalSignWithsignInlineWith(SecretKeyRingProtector secretKeyDecryptor, org.bouncycastle.openpgp.PGPSecretKeyRing signingKey)Create an inline signature using the provided secret key.default EncryptionBuilderInterface.AdditionalSignWithsignInlineWith(SecretKeyRingProtector secretKeyDecryptor, org.bouncycastle.openpgp.PGPSecretKeyRing signingKey, java.lang.String userId)Create an inline signature using the provided secret key.EncryptionBuilderInterface.AdditionalSignWithsignInlineWith(SecretKeyRingProtector secretKeyDecryptor, org.bouncycastle.openpgp.PGPSecretKeyRing signingKey, java.lang.String userId, DocumentSignatureType signatureType)Create an inline signature using the provided secret key with the algorithm preferences of the provided user-id.EncryptionBuilderInterface.AdditionalSignWithsignWith(SecretKeyRingProtector decryptor, org.bouncycastle.openpgp.PGPSecretKeyRing... keyRings)Deprecated.EncryptionBuilderInterface.AdditionalSignWithsignWith(SecretKeyRingProtector decryptor, org.bouncycastle.openpgp.PGPSecretKeyRingCollection keyRings)Deprecated.
-
-
-
Method Detail
-
signWith
@Deprecated EncryptionBuilderInterface.AdditionalSignWith signWith(@Nonnull SecretKeyRingProtector decryptor, @Nonnull org.bouncycastle.openpgp.PGPSecretKeyRing... keyRings) throws KeyValidationException, org.bouncycastle.openpgp.PGPException
Deprecated.Pass in a list of secret keys used for signing, along with aSecretKeyRingProtectorused to unlock the secret keys.- Parameters:
decryptor-SecretKeyRingProtectorused to unlock the secret keyskeyRings- secret keys used for signing- Returns:
- api handle
- Throws:
KeyValidationExceptionorg.bouncycastle.openpgp.PGPException
-
signWith
@Deprecated EncryptionBuilderInterface.AdditionalSignWith signWith(@Nonnull SecretKeyRingProtector decryptor, @Nonnull org.bouncycastle.openpgp.PGPSecretKeyRingCollection keyRings) throws KeyValidationException, org.bouncycastle.openpgp.PGPException
Deprecated.Sign inline using the passed in secret keys.- Parameters:
decryptor- for unlocking the secret keyskeyRings- secret keys- Returns:
- api handle
- Throws:
KeyValidationExceptionorg.bouncycastle.openpgp.PGPException
-
signInlineWith
default EncryptionBuilderInterface.AdditionalSignWith signInlineWith(@Nonnull SecretKeyRingProtector secretKeyDecryptor, @Nonnull org.bouncycastle.openpgp.PGPSecretKeyRing signingKey) throws org.bouncycastle.openpgp.PGPException, KeyValidationException
Create an inline signature using the provided secret key. The signature will be of typeDocumentSignatureType.BINARY_DOCUMENT.- Parameters:
secretKeyDecryptor- for unlocking the secret keysigningKey- signing key- Returns:
- api handle
- Throws:
org.bouncycastle.openpgp.PGPExceptionKeyValidationException
-
signInlineWith
default EncryptionBuilderInterface.AdditionalSignWith signInlineWith(@Nonnull SecretKeyRingProtector secretKeyDecryptor, @Nonnull org.bouncycastle.openpgp.PGPSecretKeyRing signingKey, java.lang.String userId) throws org.bouncycastle.openpgp.PGPException, KeyValidationException
Create an inline signature using the provided secret key. If userId is not null, the preferences of the matching user-id on the key will be used for signing. The signature will be of typeDocumentSignatureType.BINARY_DOCUMENT.- Parameters:
secretKeyDecryptor- for unlocking the secret keysigningKey- signing keyuserId- userId whose preferences shall be used for signing- Returns:
- api handle
- Throws:
org.bouncycastle.openpgp.PGPExceptionKeyValidationException
-
signInlineWith
EncryptionBuilderInterface.AdditionalSignWith signInlineWith(@Nonnull SecretKeyRingProtector secretKeyDecryptor, @Nonnull org.bouncycastle.openpgp.PGPSecretKeyRing signingKey, java.lang.String userId, DocumentSignatureType signatureType) throws KeyValidationException, org.bouncycastle.openpgp.PGPException
Create an inline signature using the provided secret key with the algorithm preferences of the provided user-id.- Parameters:
secretKeyDecryptor- for unlocking the secret keysigningKey- signing keyuserId- user-id whose preferences shall be used for signingsignatureType- signature type- Returns:
- api handle
- Throws:
KeyValidationExceptionorg.bouncycastle.openpgp.PGPException
-
signDetachedWith
default EncryptionBuilderInterface.AdditionalSignWith signDetachedWith(@Nonnull SecretKeyRingProtector secretKeyDecryptor, @Nonnull org.bouncycastle.openpgp.PGPSecretKeyRing signingKey) throws org.bouncycastle.openpgp.PGPException, KeyValidationException
Create a detached signature using the provided secret key.- Parameters:
secretKeyDecryptor- for unlocking the secret keysigningKey- signing key- Returns:
- api handle
- Throws:
org.bouncycastle.openpgp.PGPExceptionKeyValidationException
-
signDetachedWith
default EncryptionBuilderInterface.AdditionalSignWith signDetachedWith(@Nonnull SecretKeyRingProtector secretKeyDecryptor, @Nonnull org.bouncycastle.openpgp.PGPSecretKeyRing signingKey, java.lang.String userId) throws org.bouncycastle.openpgp.PGPException, KeyValidationException
Create a detached signature using the provided secret key with the algorithm preferences of the provided user-id.- Parameters:
secretKeyDecryptor- for unlocking the secret keysigningKey- signing keyuserId- user-id whose preferences shall be used for signing- Returns:
- api handle
- Throws:
org.bouncycastle.openpgp.PGPExceptionKeyValidationException
-
signDetachedWith
EncryptionBuilderInterface.AdditionalSignWith signDetachedWith(@Nonnull SecretKeyRingProtector secretKeyDecryptor, @Nonnull org.bouncycastle.openpgp.PGPSecretKeyRing signingKey, java.lang.String userId, DocumentSignatureType signatureType) throws org.bouncycastle.openpgp.PGPException, KeyValidationException
Create a detached signature using the provided secret key with the algorithm preferences of the provided user-id.- Parameters:
secretKeyDecryptor- for unlocking the secret keysigningKey- signing keyuserId- user-id whose preferences shall be used for signingsignatureType- type of the signature- Returns:
- api handle
- Throws:
org.bouncycastle.openpgp.PGPExceptionKeyValidationException
-
-