- Timestamp:
- 03/18/19 14:10:09 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/auth/Authenticator.java
r1252 r1253 83 83 84 84 private Authenticator() throws KeyStoreException, FileNotFoundException, IOException, NoSuchAlgorithmException, CertificateException, ClassNotFoundException, SQLException { 85 86 85 try { 87 86 keyStore = KeyStore.getInstance(KeystoreType, "SunJSSE"); … … 192 191 193 192 char[] password_ca = password.toCharArray(); 194 final KeyStore.ProtectionParameter entryPassword = new KeyStore.PasswordProtection(password_ca);193 //final KeyStore.ProtectionParameter entryPassword = new KeyStore.PasswordProtection(password_ca); 195 194 196 195 SecretKey secret_key; 197 196 try { 198 SecretKeyEntry entry = (SecretKeyEntry) keyStore.getEntry(label, entryPassword);199 secret_key = entry.getSecretKey();200 197 //SecretKeyEntry entry = (SecretKeyEntry) keyStore.getEntry(label, entryPassword); 198 //secret_key = entry.getSecretKey(); 199 secret_key = (SecretKey) keyStore.getKey(label, password_ca); 201 200 } catch (final UnrecoverableEntryException e) { 202 201 secret_key = null;
Note:
See TracChangeset
for help on using the changeset viewer.