br.com.esec.icpm.signer.ws.rest
Class PemUtils
java.lang.Object
br.com.esec.icpm.signer.ws.rest.PemUtils
public class PemUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PemUtils
public PemUtils()
isPem
public static boolean isPem(File file)
throws IOException
- Throws:
IOException
convertPemToDer
public static InputStream convertPemToDer(File certificateFile)
throws IOException
- Reads and decodes a PEM certificate into a DER certificate.
- Parameters:
certificateFile - file to convert to DER
- Returns:
- An InputStream containing the decoded certificate.
- Throws:
IOException - if the input stream is closed or some other I/O error occurs.
Copyright © 2015. All rights reserved.