We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 812add2 commit cdbdefcCopy full SHA for cdbdefc
test/jdk/java/security/PEM/PEMDecoderTest.java
@@ -163,6 +163,16 @@ public static void main(String[] args) throws Exception {
163
}
164
System.out.println("PASS");
165
166
+ System.out.println("Check if PEM decode decodes content correctly");
167
+ final String tmpContent = "1234567";
168
+ final PEM tmpPem = new PEM("ONE", tmpContent);
169
+ if (!Arrays.equals(
170
+ Base64.getDecoder().decode(tmpContent),
171
+ tmpPem.decode())) {
172
+ throw new AssertionError("PEM decode error");
173
+ }
174
+ System.out.println("PASS");
175
+
176
System.out.println("Decode to EncryptedPrivateKeyInfo: ");
177
EncryptedPrivateKeyInfo ekpi =
178
d.decode(PEMData.ed25519ep8.pem(), EncryptedPrivateKeyInfo.class);
0 commit comments