Package org.pgpainless.signature.builder
Class DirectKeySelfSignatureBuilder
java.lang.Object
org.pgpainless.signature.builder.AbstractSignatureBuilder<DirectKeySelfSignatureBuilder>
org.pgpainless.signature.builder.DirectKeySelfSignatureBuilder
public class DirectKeySelfSignatureBuilder
extends AbstractSignatureBuilder<DirectKeySelfSignatureBuilder>
-
Field Summary
Fields inherited from class org.pgpainless.signature.builder.AbstractSignatureBuilder
hashAlgorithm, hashedSubpackets, privateSigningKey, publicSigningKey, signatureType, unhashedSubpackets -
Constructor Summary
ConstructorsConstructorDescriptionDirectKeySelfSignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector) DirectKeySelfSignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey certificationKey, SecretKeyRingProtector protector, org.bouncycastle.openpgp.PGPSignature archetypeSignature) -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.bouncycastle.openpgp.PGPSignaturebuild(org.bouncycastle.openpgp.PGPPublicKey key) protected booleanReturn true if the givenSignatureTypeis a valid choice for the concrete implementation ofAbstractSignatureBuilder.Methods inherited from class org.pgpainless.signature.builder.AbstractSignatureBuilder
buildAndInitSignatureGenerator, negotiateHashAlgorithm, overrideHashAlgorithm, setSignatureType
-
Constructor Details
-
DirectKeySelfSignatureBuilder
public DirectKeySelfSignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey certificationKey, SecretKeyRingProtector protector, org.bouncycastle.openpgp.PGPSignature archetypeSignature) throws org.bouncycastle.openpgp.PGPException - Throws:
org.bouncycastle.openpgp.PGPException
-
DirectKeySelfSignatureBuilder
public DirectKeySelfSignatureBuilder(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:AbstractSignatureBuilderReturn true if the givenSignatureTypeis a valid choice for the concrete implementation ofAbstractSignatureBuilder.- Specified by:
isValidSignatureTypein classAbstractSignatureBuilder<DirectKeySelfSignatureBuilder>- Parameters:
type- type- Returns:
- return true if valid, false otherwise
-