|
The public key is gotten from the certificate
stored in certFile (in base64 encoding). So the logic looks something
like:
Signature sig =
nssToken.getSignatureContext(SignatureAlgorithm.RSASignatureWithSHA1Digest);
InputStream inStream = new
FileInputStream(certFile);
java.security.cert.CertificateFactory cf = java.security.cert.CertificateFactory.getInstance("X.509"); java.security.PublicKey pubKey = ((java.security.cert.X509Certificate)cf.generateCertificate(inStream)).getPublicKey(); sig.initVerify(pubKey);
-- P
Patrick wrote: |
- initVerify in JSS Patrick
- Re: initVerify in JSS Jamie Nicolson
- Re: initVerify in JSS Patrick
- Re: initVerify in JSS Jamie Nicolson
- Re: initVerify in JSS Patrick
- Re: initVerify in JSS Jamie Nicolson
- Re: initVerify in JSS Patrick
- Re: initVerify in JSS Jamie Nicolson
