/** * Signs the data in <em>plain</em> and stores the result in <em>signature</em>. * * @param plain data that you want to sign * @param signature result of the operation */ public void sign(GnuPGData plain, GnuPGData signature) throws GnuPGException { if (plain == null || signature == null) throw new GnuPGException("Parameters not complete or null."); gpgmeOpSign( this.getInternalRepresentation(), plain.getInternalRepresentation(), signature.getInternalRepresentation()); }