SPKAC parsed = new SPKAC(Base64.getDecoder().decode(spkac.replaceAll("[\r\n]", "")));
assertEquals("i am in the testcase", parsed.getChallenge());
RSAKey k = ((RSAKey) parsed.getPubkey());
SPKAC parsed = new SPKAC(Base64.getDecoder().decode(spkac.replaceAll("[\r\n]", "")));
assertEquals("i am in the testcase", parsed.getChallenge());
RSAKey k = ((RSAKey) parsed.getPubkey());
byte[] data = Base64.getDecoder().decode(spkac.replaceAll("[\r\n]", ""));
byte[] tampered = new byte[data.length + 1];
System.arraycopy(data, 0, tampered, 0, data.length);
byte[] data = Base64.getDecoder().decode(spkac.replaceAll("[\r\n]", ""));
byte[] tampered = new byte[data.length + 1];
System.arraycopy(data, 0, tampered, 0, data.length);