Package org.pgpainless.signature.builder
Class SelfSignatureBuilder
java.lang.Object
org.pgpainless.signature.builder.AbstractSignatureBuilder<SelfSignatureBuilder>
org.pgpainless.signature.builder.SelfSignatureBuilder
-
Field Summary
Fields inherited from class org.pgpainless.signature.builder.AbstractSignatureBuilder
hashAlgorithm, hashedSubpackets, privateSigningKey, publicSigningKey, signatureType, unhashedSubpackets -
Constructor Summary
ConstructorsConstructorDescriptionSelfSignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector) SelfSignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey primaryKey, SecretKeyRingProtector primaryKeyProtector, org.bouncycastle.openpgp.PGPSignature oldCertification) SelfSignatureBuilder(SignatureType signatureType, org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector) -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.bouncycastle.openpgp.PGPSignatureorg.bouncycastle.openpgp.PGPSignaturebuild(org.bouncycastle.openpgp.PGPPublicKey certifiedKey, org.bouncycastle.openpgp.PGPUserAttributeSubpacketVector userAttribute) 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
-
SelfSignatureBuilder
public SelfSignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector) throws org.bouncycastle.openpgp.PGPException - Throws:
org.bouncycastle.openpgp.PGPException
-
SelfSignatureBuilder
public SelfSignatureBuilder(SignatureType signatureType, org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector) throws org.bouncycastle.openpgp.PGPException - Throws:
org.bouncycastle.openpgp.PGPException
-
SelfSignatureBuilder
public SelfSignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey primaryKey, SecretKeyRingProtector primaryKeyProtector, org.bouncycastle.openpgp.PGPSignature oldCertification) 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 certifiedKey, String userId) throws org.bouncycastle.openpgp.PGPException - Throws:
org.bouncycastle.openpgp.PGPException
-
build
public org.bouncycastle.openpgp.PGPSignature build(org.bouncycastle.openpgp.PGPPublicKey certifiedKey, org.bouncycastle.openpgp.PGPUserAttributeSubpacketVector userAttribute) 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<SelfSignatureBuilder>- Parameters:
type- type- Returns:
- return true if valid, false otherwise
-