public abstract class CertificateHelper extends Object
| Constructor and Description |
|---|
CertificateHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
extractFromCertificate(com.cloudbees.plugins.credentials.common.StandardCertificateCredentials certificatCredential,
hudson.FilePath clientCrtFile,
hudson.FilePath clientKeyFile)
Extract the private key a client certificate from a X509 certificate and write them to disk.
|
static String |
wrapCertificate(String encodedBody) |
static String |
wrapPrivateKey(String encodedBody) |
public static void extractFromCertificate(com.cloudbees.plugins.credentials.common.StandardCertificateCredentials certificatCredential,
hudson.FilePath clientCrtFile,
hudson.FilePath clientKeyFile)
throws IOException,
InterruptedException
certificatCredential - Jenkins certificateCredentialclientCrtFile - path where to write of the certificateclientKeyFile - path where to write of the private keyIOException - lolInterruptedException - on file operationCopyright © 2016–2018. All rights reserved.