public class X509CertUtils extends Object
Constructor and Description |
---|
X509CertUtils() |
Modifier and Type | Method and Description |
---|---|
static X509Certificate |
parse(byte[] derEncodedCert)
Parses a DER-encoded X.509 certificate.
|
static X509Certificate |
parse(String pemEncodedCert)
Parses a PEM-encoded X.509 certificate.
|
public X509CertUtils()
public static X509Certificate parse(byte[] derEncodedCert)
derEncodedCert
- The DER-encoded X.509 certificate, as a byte
array. May be null
.null
if parsing failed.public static X509Certificate parse(String pemEncodedCert)
pemEncodedCert
- The PEM-encoded X.509 certificate, as a
string. May be null
.null
if parsing failed.Copyright © 2017 Connect2id Ltd.. All rights reserved.