Changeset 31061 in osm for applications


Ignore:
Timestamp:
2015-03-27T02:26:13+01:00 (10 years ago)
Author:
bastik
Message:

see #josm11257 - Drop dependency on Apache Commons Codec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/native-password-manager/src/org/openstreetmap/josm/plugins/npm/Win32Provider.java

    r26361 r31061  
    22package org.openstreetmap.josm.plugins.npm;
    33
    4 import org.apache.commons.codec.binary.Base64;
     4import javax.xml.bind.DatatypeConverter;
    55
    66import org.netbeans.modules.keyring.fallback.FallbackProvider;
     
    1414        @Override public byte[] getByteArray(String key, byte[] def) {
    1515            String p = Main.pref.get(key, null);
    16             return p == null ? def : Base64.decodeBase64(p);
     16            return p == null ? def : DatatypeConverter.parseBase64Binary(p);
    1717        }
    1818
    1919        @Override public void putByteArray(String key, byte[] val) {
    20             Main.pref.put(key, val == null ? null : Base64.encodeBase64String(val));
     20            Main.pref.put(key, val == null ? null : DatatypeConverter.printBase64Binary(val));
    2121        }
    2222
Note: See TracChangeset for help on using the changeset viewer.