public class CertificateParser extends Object
| Constructor and Description |
|---|
CertificateParser() |
| Modifier and Type | Method and Description |
|---|---|
static ZebraCertificateInfo |
parseCertificate(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(InputStream certificateStream, String alias, String password) throws IOException, ZebraCertificateException, CertificateEncodingException, 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 fileIOException - thrown if there is an issue reading the certificate fileZebraCertificateException - thrown if there is an issue processing the certificate fileCertificateEncodingException - thrown if the certificate type can not be determined.KeyStoreException - thrown if a PKCS12 file can not be processed due to invalid alias or password selection
© 2015 ZIH Corp. All Rights Reserved.