Package org.pgpainless.signature.builder
Class DirectKeySignatureBuilder
- java.lang.Object
 - 
- org.pgpainless.signature.builder.AbstractSignatureBuilder<DirectKeySignatureBuilder>
 - 
- org.pgpainless.signature.builder.DirectKeySignatureBuilder
 
 
 
- 
public class DirectKeySignatureBuilder extends AbstractSignatureBuilder<DirectKeySignatureBuilder>
 
- 
- 
Field Summary
- 
Fields inherited from class org.pgpainless.signature.builder.AbstractSignatureBuilder
hashAlgorithm, hashedSubpackets, privateSigningKey, publicSigningKey, signatureType, unhashedSubpackets 
 - 
 
- 
Constructor Summary
Constructors Constructor Description DirectKeySignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector)DirectKeySignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey certificationKey, SecretKeyRingProtector protector, org.bouncycastle.openpgp.PGPSignature archetypeSignature) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyCallback(SelfSignatureSubpackets.Callback callback)org.bouncycastle.openpgp.PGPSignaturebuild(org.bouncycastle.openpgp.PGPPublicKey key)SelfSignatureSubpacketsgetHashedSubpackets()SelfSignatureSubpacketsgetUnhashedSubpackets()protected booleanisValidSignatureType(SignatureType type)Return 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 Detail
- 
DirectKeySignatureBuilder
public DirectKeySignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey certificationKey, SecretKeyRingProtector protector, org.bouncycastle.openpgp.PGPSignature archetypeSignature) throws org.bouncycastle.openpgp.PGPException
- Throws:
 org.bouncycastle.openpgp.PGPException
 
- 
DirectKeySignatureBuilder
public DirectKeySignatureBuilder(org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector) throws org.bouncycastle.openpgp.PGPException
- Throws:
 org.bouncycastle.openpgp.PGPException
 
 - 
 
- 
Method Detail
- 
getHashedSubpackets
public SelfSignatureSubpackets getHashedSubpackets()
 
- 
getUnhashedSubpackets
public SelfSignatureSubpackets getUnhashedSubpackets()
 
- 
applyCallback
public void applyCallback(@Nullable SelfSignatureSubpackets.Callback callback)
 
- 
build
public org.bouncycastle.openpgp.PGPSignature build(org.bouncycastle.openpgp.PGPPublicKey key) throws org.bouncycastle.openpgp.PGPException
- Throws:
 org.bouncycastle.openpgp.PGPException
 
- 
isValidSignatureType
protected boolean isValidSignatureType(SignatureType type)
Description copied from class:AbstractSignatureBuilderReturn true if the givenSignatureTypeis a valid choice for the concrete implementation ofAbstractSignatureBuilder.- Specified by:
 isValidSignatureTypein classAbstractSignatureBuilder<DirectKeySignatureBuilder>- Parameters:
 type- type- Returns:
 - return true if valid, false otherwise
 
 
 - 
 
 -