Software components for data protection, secure storage and transfer
String configName = "c:\\Program Files\\Java\\jdk1.7.0\\jre\\lib\\security\\pkcs11.cfg"; // or any other file
Provider prov = new sun.security.pkcs11.SunPKCS11(configName);
KeyStore ks = KeyStore.getInstance("PKCS11", prov);
char pin = "pin code".toCharArray();
X509Certificate cert = (X509Certificate) ks.getCertificate("certificate_alias");
Key key = ks.getKey("key_alias", "pin code".toCharArray());
// convert both cert and key into TElX509Certificate and use
Messages 11 - 16 of 16
First | Prev. | 1 2 | Next | Last
Number of guests: 1, registered members: 0,
in total hidden: 0
Copyright (c) 2016, /n software, Inc.
As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.