Changeset 35665 in osm for applications/editors/josm/plugins/native-password-manager/src/org/netbeans/modules/keyring/fallback/FallbackProvider.java
- Timestamp:
- 2020-12-07T18:10:16+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/native-password-manager/src/org/netbeans/modules/keyring/fallback/FallbackProvider.java
r34634 r35665 91 91 byte[] randomArray = new byte[36]; 92 92 new SecureRandom().nextBytes(randomArray); 93 if (_save(SAMPLE_KEY, (SAMPLE_KEY + new String(randomArray, StandardCharsets.UTF_8)).toCharArray(), 94 "Sample value ensuring that decryption is working.")) { 93 if (_save(SAMPLE_KEY, (SAMPLE_KEY + new String(randomArray, StandardCharsets.UTF_8)).toCharArray())) { 95 94 LOG.fine("saved sample key"); 96 95 return true; … … 117 116 @Override 118 117 public void save(String key, char[] password, String description) { 119 _save(key, password , description);118 _save(key, password); 120 119 } 121 private boolean _save(String key, char[] password, String description) { 120 121 private boolean _save(String key, char[] password) { 122 122 try { 123 123 prefs.putByteArray(key, encryption.encrypt(password));
Note:
See TracChangeset
for help on using the changeset viewer.