Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
0004232: Java 9 and newer class not found
javax.xml.bind.DatatypeConverter
  • Loading branch information
erilong committed Jan 6, 2020
1 parent d1802ee commit 46ee51b
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -46,8 +46,6 @@
import java.util.Date;
import java.util.List;

import javax.xml.bind.DatatypeConverter;

import org.apache.commons.codec.binary.Base64;
import org.bouncycastle.asn1.x500.X500Name;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
Expand Down Expand Up @@ -218,7 +216,7 @@ protected byte[] readPemBytes(BufferedReader reader) throws IOException, Certifi
String line = null;
while ((line = reader.readLine()) != null) {
if (line.startsWith("----")) {
bytes = DatatypeConverter.parseBase64Binary(sb.toString());
bytes = Base64.decodeBase64(sb.toString());
break;
}
sb.append(line);
Expand Down

0 comments on commit 46ee51b

Please sign in to comment.