src/java.base/share/classes/com/sun/crypto/provider/BlockCipherParamsCore.java
changeset 48944 25aa8b9f1dae
parent 47216 71c04702a3d5
equal deleted inserted replaced
48943:e61816fc5276 48944:25aa8b9f1dae
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   113 
   113 
   114     /*
   114     /*
   115      * Returns a formatted string describing the parameters.
   115      * Returns a formatted string describing the parameters.
   116      */
   116      */
   117     public String toString() {
   117     public String toString() {
   118         String LINE_SEP = System.getProperty("line.separator");
   118         String LINE_SEP = System.lineSeparator();
   119 
   119 
   120         String ivString = LINE_SEP + "    iv:" + LINE_SEP + "[";
   120         String ivString = LINE_SEP + "    iv:" + LINE_SEP + "[";
   121         HexDumpEncoder encoder = new HexDumpEncoder();
   121         HexDumpEncoder encoder = new HexDumpEncoder();
   122         ivString += encoder.encodeBuffer(this.iv);
   122         ivString += encoder.encodeBuffer(this.iv);
   123         ivString += "]" + LINE_SEP;
   123         ivString += "]" + LINE_SEP;