Changeset 31061 in osm for applications
- Timestamp:
- 2015-03-27T02:26:13+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/native-password-manager/src/org/openstreetmap/josm/plugins/npm/Win32Provider.java
r26361 r31061 2 2 package org.openstreetmap.josm.plugins.npm; 3 3 4 import org.apache.commons.codec.binary.Base64;4 import javax.xml.bind.DatatypeConverter; 5 5 6 6 import org.netbeans.modules.keyring.fallback.FallbackProvider; … … 14 14 @Override public byte[] getByteArray(String key, byte[] def) { 15 15 String p = Main.pref.get(key, null); 16 return p == null ? def : Base64.decodeBase64(p);16 return p == null ? def : DatatypeConverter.parseBase64Binary(p); 17 17 } 18 18 19 19 @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)); 21 21 } 22 22
Note:
See TracChangeset
for help on using the changeset viewer.