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 void
applyCallback(RevocationSignatureSubpackets.Callback callback)
org.bouncycastle.openpgp.PGPSignature
build(String revokeeUserId)
org.bouncycastle.openpgp.PGPSignature
build(org.bouncycastle.openpgp.PGPPublicKey revokeeSubkey)
RevocationSignatureSubpackets
getHashedSubpackets()
RevocationSignatureSubpackets
getUnhashedSubpackets()
protected boolean
isValidSignatureType(SignatureType type)
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 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:AbstractSignatureBuilder
Return true if the givenSignatureType
is a valid choice for the concrete implementation ofAbstractSignatureBuilder
.- Specified by:
isValidSignatureType
in 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
-
-