Package org.pgpainless.signature.builder
Class PrimaryKeyBindingSignatureBuilder
java.lang.Object
org.pgpainless.signature.builder.AbstractSignatureBuilder<PrimaryKeyBindingSignatureBuilder>
org.pgpainless.signature.builder.PrimaryKeyBindingSignatureBuilder
public class PrimaryKeyBindingSignatureBuilder
extends AbstractSignatureBuilder<PrimaryKeyBindingSignatureBuilder>
-
Field Summary
Fields inherited from class org.pgpainless.signature.builder.AbstractSignatureBuilder
hashAlgorithm, hashedSubpackets, privateSigningKey, publicSigningKey, signatureType, unhashedSubpackets
-
Constructor Summary
ConstructorsConstructorDescriptionPrimaryKeyBindingSignatureBuilder
(org.bouncycastle.openpgp.PGPSecretKey subkey, SecretKeyRingProtector subkeyProtector) PrimaryKeyBindingSignatureBuilder
(org.bouncycastle.openpgp.PGPSecretKey secretSubKey, SecretKeyRingProtector subkeyProtector, HashAlgorithm hashAlgorithm) -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.bouncycastle.openpgp.PGPSignature
build
(org.bouncycastle.openpgp.PGPPublicKey primaryKey) 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
-
PrimaryKeyBindingSignatureBuilder
public PrimaryKeyBindingSignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey subkey, SecretKeyRingProtector subkeyProtector) throws org.bouncycastle.openpgp.PGPException - Throws:
org.bouncycastle.openpgp.PGPException
-
PrimaryKeyBindingSignatureBuilder
public PrimaryKeyBindingSignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey secretSubKey, SecretKeyRingProtector subkeyProtector, HashAlgorithm hashAlgorithm) throws org.bouncycastle.openpgp.PGPException - Throws:
org.bouncycastle.openpgp.PGPException
-
-
Method Details
-
getHashedSubpackets
-
getUnhashedSubpackets
-
applyCallback
-
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<PrimaryKeyBindingSignatureBuilder>
- Parameters:
type
- type- Returns:
- return true if valid, false otherwise
-
build
public org.bouncycastle.openpgp.PGPSignature build(org.bouncycastle.openpgp.PGPPublicKey primaryKey) throws org.bouncycastle.openpgp.PGPException - Throws:
org.bouncycastle.openpgp.PGPException
-