Package org.pgpainless.signature.builder
Class ThirdPartyDirectKeySignatureBuilder
java.lang.Object
org.pgpainless.signature.builder.AbstractSignatureBuilder<ThirdPartyDirectKeySignatureBuilder>
org.pgpainless.signature.builder.ThirdPartyDirectKeySignatureBuilder
public class ThirdPartyDirectKeySignatureBuilder
extends AbstractSignatureBuilder<ThirdPartyDirectKeySignatureBuilder>
-
Field Summary
Fields inherited from class org.pgpainless.signature.builder.AbstractSignatureBuilder
hashAlgorithm, hashedSubpackets, privateSigningKey, publicSigningKey, signatureType, unhashedSubpackets
-
Constructor Summary
ConstructorsConstructorDescriptionThirdPartyDirectKeySignatureBuilder
(org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector) ThirdPartyDirectKeySignatureBuilder
(org.bouncycastle.openpgp.PGPSecretKey certificationKey, SecretKeyRingProtector protector, org.bouncycastle.openpgp.PGPSignature archetypeSignature) -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.bouncycastle.openpgp.PGPSignature
build
(org.bouncycastle.openpgp.PGPPublicKey key) protected boolean
Return true if the givenSignatureType
is a valid choice for the concrete implementation ofAbstractSignatureBuilder
.Methods inherited from class org.pgpainless.signature.builder.AbstractSignatureBuilder
buildAndInitSignatureGenerator, negotiateHashAlgorithm, overrideHashAlgorithm, setSignatureType
-
Constructor Details
-
ThirdPartyDirectKeySignatureBuilder
public ThirdPartyDirectKeySignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey certificationKey, SecretKeyRingProtector protector, org.bouncycastle.openpgp.PGPSignature archetypeSignature) throws org.bouncycastle.openpgp.PGPException - Throws:
org.bouncycastle.openpgp.PGPException
-
ThirdPartyDirectKeySignatureBuilder
public ThirdPartyDirectKeySignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector) throws org.bouncycastle.openpgp.PGPException - Throws:
org.bouncycastle.openpgp.PGPException
-
-
Method Details
-
getHashedSubpackets
-
getUnhashedSubpackets
-
applyCallback
-
build
public org.bouncycastle.openpgp.PGPSignature build(org.bouncycastle.openpgp.PGPPublicKey key) throws org.bouncycastle.openpgp.PGPException - Throws:
org.bouncycastle.openpgp.PGPException
-
isValidSignatureType
Description copied from class:AbstractSignatureBuilder
Return true if the givenSignatureType
is a valid choice for the concrete implementation ofAbstractSignatureBuilder
.- Specified by:
isValidSignatureType
in classAbstractSignatureBuilder<ThirdPartyDirectKeySignatureBuilder>
- Parameters:
type
- type- Returns:
- return true if valid, false otherwise
-