Package org.pgpainless.signature.builder
Class RevocationSignatureBuilder
- java.lang.Object
-
- org.pgpainless.signature.builder.AbstractSignatureBuilder<RevocationSignatureBuilder>
-
- org.pgpainless.signature.builder.RevocationSignatureBuilder
-
public class RevocationSignatureBuilder extends AbstractSignatureBuilder<RevocationSignatureBuilder>
-
-
Field Summary
-
Fields inherited from class org.pgpainless.signature.builder.AbstractSignatureBuilder
hashAlgorithm, hashedSubpackets, privateSigningKey, publicSigningKey, signatureType, unhashedSubpackets
-
-
Constructor Summary
Constructors Constructor Description RevocationSignatureBuilder(SignatureType signatureType, org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyCallback(RevocationSignatureSubpackets.Callback callback)org.bouncycastle.openpgp.PGPSignaturebuild(String revokeeUserId)org.bouncycastle.openpgp.PGPSignaturebuild(org.bouncycastle.openpgp.PGPPublicKey revokeeSubkey)RevocationSignatureSubpacketsgetHashedSubpackets()RevocationSignatureSubpacketsgetUnhashedSubpackets()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
-
RevocationSignatureBuilder
public RevocationSignatureBuilder(SignatureType signatureType, org.bouncycastle.openpgp.PGPSecretKey signingKey, SecretKeyRingProtector protector) throws org.bouncycastle.openpgp.PGPException
- Throws:
org.bouncycastle.openpgp.PGPException
-
-
Method Detail
-
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<RevocationSignatureBuilder>- Parameters:
type- type- Returns:
- return true if valid, false otherwise
-
getHashedSubpackets
public RevocationSignatureSubpackets getHashedSubpackets()
-
getUnhashedSubpackets
public RevocationSignatureSubpackets getUnhashedSubpackets()
-
applyCallback
public void applyCallback(@Nullable RevocationSignatureSubpackets.Callback callback)
-
build
public org.bouncycastle.openpgp.PGPSignature build(org.bouncycastle.openpgp.PGPPublicKey revokeeSubkey) throws org.bouncycastle.openpgp.PGPException
- Throws:
org.bouncycastle.openpgp.PGPException
-
-