public class CertificateParser
extends Object
| Modifier and Type | Method and Description |
|---|---|
static ZebraCertificateInfo |
parseCertificate(java.io.InputStream certificateStream,
String alias,
String password)
Takes in a certificate file (P12, DER, PEM, etc) and processes it into a ZebraCertificateInfo object which
contains the selected certificate, Certificate Authority certificate chain, and private key (if applicable).
|
public static ZebraCertificateInfo parseCertificate(java.io.InputStream certificateStream, String alias, String password) throws java.io.IOException, ZebraCertificateException, java.security.cert.CertificateEncodingException, java.security.KeyStoreException
certificateStream - data stream for the certificate file to be processedalias - the certificate to use within a multi-certificate (like PKCS12) filepassword - used to unlock a protected certificate filejava.io.IOException - thrown if there is an issue reading the certificate fileZebraCertificateException - thrown if there is an issue processing the certificate filejava.security.cert.CertificateEncodingException - thrown if the certificate type can not be determined.java.security.KeyStoreException - thrown if a PKCS12 file can not be processed due to invalid alias or password selection
© 2017 ZIH Corp. All Rights Reserved.