Class SigningOptions.SigningMethod

    • Method Detail

      • inlineSignature

        public static SigningOptions.SigningMethod inlineSignature​(org.bouncycastle.openpgp.PGPSignatureGenerator signatureGenerator,
                                                                   HashAlgorithm hashAlgorithm)
        Inline-signature method. The resulting signature will be written into the message itself, together with a one-pass-signature packet.
        Parameters:
        signatureGenerator - signature generator
        Returns:
        inline signing method
      • detachedSignature

        public static SigningOptions.SigningMethod detachedSignature​(org.bouncycastle.openpgp.PGPSignatureGenerator signatureGenerator,
                                                                     HashAlgorithm hashAlgorithm)
        Detached signing method. The resulting signature will not be added to the message, and instead can be distributed separately to the signed message.
        Parameters:
        signatureGenerator - signature generator
        Returns:
        detached signing method