test/jdk/com/sun/crypto/provider/Cipher/PBE/PKCS12Cipher.java
changeset 51504 c9a3e3cac9c7
parent 47216 71c04702a3d5
--- a/test/jdk/com/sun/crypto/provider/Cipher/PBE/PKCS12Cipher.java	Thu Aug 23 10:52:27 2018 +0200
+++ b/test/jdk/com/sun/crypto/provider/Cipher/PBE/PKCS12Cipher.java	Thu Aug 23 11:37:14 2018 +0100
@@ -106,7 +106,7 @@
         this.salt = salt;
         this.iCount = iCount;
     }
-    public char[] getPassword() { return passwd; }
+    public char[] getPassword() { return passwd.clone(); }
     public byte[] getSalt() { return salt; }
     public int getIterationCount() { return iCount; }
     public String getAlgorithm() { return "PBE"; }