public class X509CertificateUtils extends Object
Modifier and Type | Method and Description |
---|---|
static X509Certificate |
decodeCertificate(File file)
Given a file containing a X.509 certificate the method returns a
X509Certificate object. |
static X509Certificate |
decodeCertificate(InputStream stream)
Decodes a
X509Certificate from an input stream. |
public static X509Certificate decodeCertificate(File file) throws CertificateException, FileNotFoundException
X509Certificate
object.file
- the fileX509Certificate
objectCertificateException
- for decoding errorsFileNotFoundException
- if the file cannot be foundpublic static X509Certificate decodeCertificate(InputStream stream) throws CertificateException
X509Certificate
from an input stream.stream
- the stream to readX509Certificate
objectCertificateException
- for decoding errorsCopyright © 2018 Litsec AB. All rights reserved.