BigInteger r = new BigInteger(1, HexDump.hexStringToByteArray(rStr));
BigInteger s = new BigInteger(1, HexDump.hexStringToByteArray(sStr));
System.out.println("r: " + HexDump.byteArrayToHexString(r.toByteArray()));
System.out.println(r.toString());
System.out.println("s: " + HexDump.byteArrayToHexString(s.toByteArray()));
System.out.println(s.toString());
System.out.println(Base64.encode(convertBIGINTtoXMLDSIG(r, s)));
System.out.println(Base64.encode(convertBIGINTtoASN1(r, s)));
}