Class SelfSignatureBuilder


public class SelfSignatureBuilder extends AbstractSignatureBuilder<SelfSignatureBuilder>
  • 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

      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 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

      protected boolean isValidSignatureType(SignatureType type)
      Description copied from class: AbstractSignatureBuilder
      Return true if the given SignatureType is a valid choice for the concrete implementation of AbstractSignatureBuilder.
      Specified by:
      isValidSignatureType in class AbstractSignatureBuilder<SelfSignatureBuilder>
      Parameters:
      type - type
      Returns:
      return true if valid, false otherwise