Ignore:
Timestamp:
2020-12-07T18:10:16+01:00 (4 years ago)
Author:
Don-vip
Message:

update to latest JNA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/native-password-manager/src/org/netbeans/modules/keyring/fallback/FallbackProvider.java

    r34634 r35665  
    9191        byte[] randomArray = new byte[36];
    9292        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())) {
    9594            LOG.fine("saved sample key");
    9695            return true;
     
    117116    @Override
    118117    public void save(String key, char[] password, String description) {
    119         _save(key, password, description);
     118        _save(key, password);
    120119    }
    121     private boolean _save(String key, char[] password, String description) {
     120
     121    private boolean _save(String key, char[] password) {
    122122        try {
    123123            prefs.putByteArray(key, encryption.encrypt(password));
Note: See TracChangeset for help on using the changeset viewer.