public final class CertificateUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Certificate |
loadCertificate(InputStream inputStream)
Load Certificate from a input stream
|
static Certificate |
loadCertificate(String filePath)
Load Certificate from system file path
|
public static Certificate loadCertificate(String filePath) throws FileNotFoundException, CertificateException
filePath - Path of certificate fileFileNotFoundException - if file is not foundCertificateException - if any error occurred while reading certificatepublic static Certificate loadCertificate(InputStream inputStream) throws CertificateException
inputStream - InputStream containing certificate dataCertificateException - if any error occurred while reading certificate from streamCopyright © 2021. All rights reserved.