Changeset 10746 in josm for trunk/src/oauth
- Timestamp:
- 2016-08-06T16:52:01+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/oauth/signpost/signature/OAuthMessageSigner.java
r8149 r10746 17 17 import java.io.IOException; 18 18 import java.io.Serializable; 19 import java x.xml.bind.DatatypeConverter;19 import java.util.Base64; 20 20 21 21 import oauth.signpost.exception.OAuthMessageSignerException; … … 54 54 55 55 protected byte[] decodeBase64(String s) { 56 return DatatypeConverter.parseBase64Binary(s);56 return Base64.getDecoder().decode(s); 57 57 } 58 58 59 59 protected String base64Encode(byte[] b) { 60 return DatatypeConverter.printBase64Binary(b);60 return Base64.getEncoder().encodeToString(b); 61 61 } 62 62
Note:
See TracChangeset
for help on using the changeset viewer.