publicKeyTemplate, privateKeyTemplate); labelChars = keypair.getPrivateKey().getLabel().getCharArrayValue(); } catch (TokenException ex) { throw new P11TokenException("could not generate keypair " String publicKeyLabel = new String(keypair.getPublicKey().getLabel().getCharArrayValue()); jcePublicKey = generatePublicKey(keypair.getPublicKey()); } catch (XiSecurityException ex) { throw new P11TokenException("could not generate public key " + objId, ex);
(PrivateKey) PKCS11Object.getInstance(this, objectHandles[1]); return new KeyPair(publicKey, privateKey);
java.security.PublicKey jcePublicKey; try { jcePublicKey = generatePublicKey(keypair.getPublicKey()); } catch (XiSecurityException ex) { throw new P11TokenException("could not generate public key " + objId, ex);