Package org.pgpainless.signature.builder
Class UniversalSignatureBuilder
java.lang.Object
org.pgpainless.signature.builder.AbstractSignatureBuilder<UniversalSignatureBuilder>
org.pgpainless.signature.builder.UniversalSignatureBuilder
Signature builder without restrictions on subpacket contents.
-
Field Summary
Fields inherited from class org.pgpainless.signature.builder.AbstractSignatureBuilder
hashAlgorithm, hashedSubpackets, privateSigningKey, publicSigningKey, signatureType, unhashedSubpackets
-
Constructor Summary
ConstructorsConstructorDescriptionUniversalSignatureBuilder
(org.bouncycastle.openpgp.PGPSecretKey certificationKey, SecretKeyRingProtector protector, org.bouncycastle.openpgp.PGPSignature archetypeSignature) UniversalSignatureBuilder
(SignatureType signatureType, org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector) -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.bouncycastle.openpgp.PGPSignatureGenerator
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
-
UniversalSignatureBuilder
public UniversalSignatureBuilder(SignatureType signatureType, org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector) throws org.bouncycastle.openpgp.PGPException - Throws:
org.bouncycastle.openpgp.PGPException
-
UniversalSignatureBuilder
public UniversalSignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey certificationKey, SecretKeyRingProtector protector, org.bouncycastle.openpgp.PGPSignature archetypeSignature) 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<UniversalSignatureBuilder>
- Parameters:
type
- type- Returns:
- return true if valid, false otherwise
-
getHashedSubpackets
-
getUnhashedSubpackets
-
applyCallback
-
getSignatureGenerator
public org.bouncycastle.openpgp.PGPSignatureGenerator getSignatureGenerator() throws org.bouncycastle.openpgp.PGPException- Throws:
org.bouncycastle.openpgp.PGPException
-