Skip to content

Commit c0fa68a

Browse files
committed
fixed imports
1 parent 0a2d41f commit c0fa68a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kms/src/test/java/com/example/AsymmetricIT.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@
3131
import java.io.ByteArrayOutputStream;
3232
import java.io.IOException;
3333
import java.io.PrintStream;
34+
import java.nio.charset.StandardCharsets;
3435
import java.security.NoSuchAlgorithmException;
3536
import java.security.NoSuchProviderException;
3637
import java.security.PublicKey;
3738
import java.security.spec.InvalidKeySpecException;
39+
import java.util.Base64;
3840
import java.util.UUID;
3941
import java.util.regex.Matcher;
4042
import java.util.regex.Pattern;
@@ -142,7 +144,7 @@ public void testRSAEncryptDecrypt() throws Exception {
142144
assertEquals("incorrect RSA ciphertext length.", 344, ciphertext.length());
143145
assertEquals("incorrect ciphertext final character.", '=', ciphertext.charAt(343));
144146

145-
bytes[] plainbytes = Asymmetric.decryptRSA(cipherbytes, client, rsaDecrypt);
147+
byte[] plainbytes = Asymmetric.decryptRSA(cipherbytes, client, rsaDecrypt);
146148
String plaintext = new String(plainbytes);
147149
assertEquals("decryption failed.", message, plaintext);
148150
}

0 commit comments

Comments
 (0)