br.com.esec.icpm.signer.ws.rest
Class PemUtils

java.lang.Object
  extended by br.com.esec.icpm.signer.ws.rest.PemUtils

public class PemUtils
extends Object


Constructor Summary
PemUtils()
           
 
Method Summary
static InputStream convertPemToDer(File certificateFile)
          Reads and decodes a PEM certificate into a DER certificate.
static boolean isPem(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PemUtils

public PemUtils()
Method Detail

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.