public class X509CertChainUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<X509Certificate> |
parse(File pemFile)
Parses a X.509 certificate chain from the specified PEM-encoded
representation.
|
static List<X509Certificate> |
parse(List<Base64> b64List)
Parses a X.509 certificate chain from the specified Base64-encoded
DER-encoded representation.
|
static List<X509Certificate> |
parse(String pemString)
Parses a X.509 certificate chain from the specified PEM-encoded
representation.
|
static List<UUID> |
store(KeyStore trustStore,
List<X509Certificate> certChain)
Stores a X.509 certificate chain into the specified Java trust (key)
store.
|
static List<Base64> |
toBase64List(net.minidev.json.JSONArray jsonArray)
Converts the specified JSON array of strings to a list of Base64
encoded objects.
|
public static List<Base64> toBase64List(net.minidev.json.JSONArray jsonArray) throws ParseException
jsonArray - The JSON array of string, null if not
specified.null if not specified.ParseException - If parsing failed.public static List<X509Certificate> parse(List<Base64> b64List) throws ParseException
b64List - The Base64-encoded DER-encoded X.509 certificate
chain, null if not specified.null if not specified.ParseException - If parsing failed.public static List<X509Certificate> parse(File pemFile) throws IOException, CertificateException
pemFile - The PEM-encoded X.509 certificate chain file. Must
not be null.IOException - On I/O exception.CertificateException - On a certificate exception.public static List<X509Certificate> parse(String pemString) throws IOException, CertificateException
pemString - The PEM-encoded X.509 certificate chain. Must not
be null.IOException - On I/O exception.CertificateException - On a certificate exception.public static List<UUID> store(KeyStore trustStore, List<X509Certificate> certChain) throws KeyStoreException
trustStore - The trust (key) store. Must be initialised and not
null.certChain - The X.509 certificate chain. Must not be
null.KeyStoreException - On a key store exception.Copyright © 2021 Connect2id Ltd.. All rights reserved.