Lines Matching defs:signer
164 Signature signer = Signature.getInstance("SHA512withRSA");
165 signer.initSign(createKey());
166 signer.update(content.trim().getBytes());
167 signer.update(version.trim().getBytes());
168 signer.update(requiredHash.getBytes());
169 String sig = new String(Base64.encode(signer.sign(), Base64.DEFAULT));
177 Signature signer = Signature.getInstance("SHA512withRSA");
178 signer.initVerify(cert);
179 signer.update(content.trim().getBytes());
180 signer.update(version.trim().getBytes());
181 signer.update(requiredPrevious.trim().getBytes());
182 return signer.verify(Base64.decode(signature.getBytes(), Base64.DEFAULT));