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