Changeset 1334 for trunk/src/org/expeditee/auth/AuthenticatorBrowser.java
- Timestamp:
- 04/29/19 13:13:48 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/auth/AuthenticatorBrowser.java
r1304 r1334 44 44 45 45 import org.expeditee.actions.Actions; 46 import org.expeditee.auth.tags.Constants;47 46 import org.expeditee.core.Dimension; 48 47 import org.expeditee.core.Point; … … 182 181 final File keyStoreFile = new File(FrameIO.PARENT_FOLDER + KEYSTOREFILENAME); 183 182 if (!keyStoreFile.exists()) { 184 keyStore.load(null, Constants.CREDENTIALS_KEYSTORE_PASSWORD.toCharArray());183 keyStore.load(null, "ExpediteeAuthPassword".toCharArray()); 185 184 } else { 186 185 try (final InputStream in = new FileInputStream(FrameIO.PARENT_FOLDER + KEYSTOREFILENAME)) { 187 keyStore.load(in, Constants.CREDENTIALS_KEYSTORE_PASSWORD.toCharArray());186 keyStore.load(in, "ExpediteeAuthPassword".toCharArray()); 188 187 } 189 188 } … … 324 323 final KeyStore.ProtectionParameter entryPassword = new KeyStore.PasswordProtection(password.toCharArray()); 325 324 keyStore.setEntry(label, entry, entryPassword); 326 keyStore.store(new FileOutputStream(FrameIO.PARENT_FOLDER + KEYSTOREFILENAME), Constants.CREDENTIALS_KEYSTORE_PASSWORD.toCharArray());325 keyStore.store(new FileOutputStream(FrameIO.PARENT_FOLDER + KEYSTOREFILENAME), "ExpediteeAuthPassword".toCharArray()); 327 326 } 328 327 … … 335 334 } else if (entry.getSecretKey().getEncoded() == TRUE) { 336 335 keyStore.deleteEntry(email + username); 337 keyStore.store(new FileOutputStream(FrameIO.PARENT_FOLDER + KEYSTOREFILENAME), Constants.CREDENTIALS_KEYSTORE_PASSWORD.toCharArray());336 keyStore.store(new FileOutputStream(FrameIO.PARENT_FOLDER + KEYSTOREFILENAME), "ExpediteeAuthPassword".toCharArray()); 338 337 return true; 339 338 } else { return false; } … … 354 353 final KeyStore.ProtectionParameter entryPassword = new KeyStore.PasswordProtection(intergalacticNumber.toCharArray()); 355 354 keyStore.setEntry(email + username, entry, entryPassword); 356 keyStore.store(new FileOutputStream(FrameIO.PARENT_FOLDER + KEYSTOREFILENAME), Constants.CREDENTIALS_KEYSTORE_PASSWORD.toCharArray());355 keyStore.store(new FileOutputStream(FrameIO.PARENT_FOLDER + KEYSTOREFILENAME), "ExpediteeAuthPassword".toCharArray()); 357 356 358 357 return intergalacticNumber; … … 392 391 KeyStore.ProtectionParameter entryPassword = new KeyStore.PasswordProtection(KeyList.PersonalKey.get().getText().toCharArray()); 393 392 keyStore.setEntry(username + "colleaguesRequested", entry, entryPassword); 394 keyStore.store(new FileOutputStream(FrameIO.PARENT_FOLDER + KEYSTOREFILENAME), Constants.CREDENTIALS_KEYSTORE_PASSWORD.toCharArray());393 keyStore.store(new FileOutputStream(FrameIO.PARENT_FOLDER + KEYSTOREFILENAME), "ExpediteeAuthPassword".toCharArray()); 395 394 } 396 395 … … 399 398 KeyStore.ProtectionParameter entryPassword = new KeyStore.PasswordProtection(KeyList.PersonalKey.get().getText().toCharArray()); 400 399 keyStore.setEntry(username + "colleaguesRequested", entry, entryPassword); 401 keyStore.store(new FileOutputStream(FrameIO.PARENT_FOLDER + KEYSTOREFILENAME), Constants.CREDENTIALS_KEYSTORE_PASSWORD.toCharArray());400 keyStore.store(new FileOutputStream(FrameIO.PARENT_FOLDER + KEYSTOREFILENAME), "ExpediteeAuthPassword".toCharArray()); 402 401 } 403 402
Note:
See TracChangeset
for help on using the changeset viewer.