public class PEMHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static KeyStore |
loadCertificates(File pemFile)
Load one or more X.509 Certificates from a PEM file
|
static Object |
parse(org.bouncycastle.util.io.pem.PemObject obj)
Parse a PemObject.
|
public static KeyStore loadCertificates(File pemFile)
pemFile - A PKCS8 PEM file containing only CERTIFICATE / X.509 CERTIFICATE blocksindex" where index is the 0-based index of the
certificate in the PEMRuntimeException - if a problem occurspublic static Object parse(org.bouncycastle.util.io.pem.PemObject obj) throws GeneralSecurityException
CERTIFICATE / X.509 CERTIFICATE typesobj - a PemObject with a type and with contentsGeneralSecurityException - if there is a parsing problemIllegalArgumentException - if the PemObject cannot be recognisedCopyright © 2017. All rights reserved.