diff options
Diffstat (limited to 'pki/base/silent/src/com/netscape/pkisilent/common/Utilities.java')
-rw-r--r-- | pki/base/silent/src/com/netscape/pkisilent/common/Utilities.java | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/pki/base/silent/src/com/netscape/pkisilent/common/Utilities.java b/pki/base/silent/src/com/netscape/pkisilent/common/Utilities.java index 3d90c841..9aaf6c4d 100644 --- a/pki/base/silent/src/com/netscape/pkisilent/common/Utilities.java +++ b/pki/base/silent/src/com/netscape/pkisilent/common/Utilities.java @@ -1,4 +1,5 @@ package com.netscape.pkisilent.common; + // --- BEGIN COPYRIGHT BLOCK --- // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -79,7 +80,7 @@ public class Utilities { StringBuffer buf = new StringBuffer(); int end = token.length(); int begin = 0; - + if (token.endsWith(";")) { end--; } @@ -175,7 +176,7 @@ public class Utilities { } tempBuffer.append(temp); } - + return tempBuffer.toString(); } catch (Exception e) { System.out.println("ERROR: getcertfromfile" + e.toString()); @@ -222,7 +223,7 @@ public class Utilities { tempBuffer.append(temp); } - + return tempBuffer.toString(); } catch (Exception e) { System.out.println("ERROR: getcrlfromfile" + e.toString()); @@ -249,7 +250,7 @@ public class Utilities { tempBuffer.append(temp); } - + return tempBuffer.toString(); } catch (Exception e) { System.out.println("ERROR: getcafromfile" + e.toString()); @@ -264,7 +265,7 @@ public class Utilities { */ public static String escapeBinaryData(byte data[]) { String result = ""; - + for (int i = 0; i < data.length; i++) { String s = Integer.toHexString((int) (0xff & data[i])); @@ -321,7 +322,7 @@ public class Utilities { CertificateSubjectName csn1 = (CertificateSubjectName) certinfo.get(X509CertInfo.SUBJECT); - + X500Name dname = (X500Name) csn1.get(CertificateSubjectName.DN_NAME); String pp = ""; @@ -343,7 +344,4 @@ public class Utilities { } -} - - -; // end class +}; // end class |