public class CertificateUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.security.KeyStore |
createKeyStore(java.lang.String keypem,
java.lang.String certpem) |
static java.security.KeyStore |
createTrustStore(java.io.Reader certReader)
"ca.pem" from Reader
|
static java.security.KeyStore |
createTrustStore(java.lang.String capem)
"ca.pem" from String
|
static java.util.List<java.security.cert.Certificate> |
loadCertificates(java.io.Reader reader)
"cert.pem" from reader
|
static java.util.List<java.security.cert.Certificate> |
loadCertificates(java.lang.String certpem)
from "cert.pem" String
|
static java.security.PrivateKey |
loadPrivateKey(java.io.Reader reader)
Return private key ("key.pem") from Reader
|
static java.security.PrivateKey |
loadPrivateKey(java.lang.String keypem)
Return KeyPair from "key.pem"
|
static boolean |
verifyCertificatesExist(java.lang.String dockerCertPath) |
public static boolean verifyCertificatesExist(java.lang.String dockerCertPath)
public static java.security.KeyStore createKeyStore(java.lang.String keypem,
java.lang.String certpem)
throws java.security.NoSuchAlgorithmException,
java.security.spec.InvalidKeySpecException,
java.io.IOException,
java.security.cert.CertificateException,
java.security.KeyStoreException
java.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecExceptionjava.io.IOExceptionjava.security.cert.CertificateExceptionjava.security.KeyStoreExceptionpublic static java.util.List<java.security.cert.Certificate> loadCertificates(java.lang.String certpem)
throws java.io.IOException,
java.security.cert.CertificateException
java.io.IOExceptionjava.security.cert.CertificateExceptionpublic static java.util.List<java.security.cert.Certificate> loadCertificates(java.io.Reader reader)
throws java.io.IOException,
java.security.cert.CertificateException
java.io.IOExceptionjava.security.cert.CertificateException@CheckForNull
public static java.security.PrivateKey loadPrivateKey(java.io.Reader reader)
throws java.io.IOException,
java.security.NoSuchAlgorithmException,
java.security.spec.InvalidKeySpecException
java.io.IOExceptionjava.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecException@CheckForNull
public static java.security.PrivateKey loadPrivateKey(java.lang.String keypem)
throws java.io.IOException,
java.security.NoSuchAlgorithmException,
java.security.spec.InvalidKeySpecException
java.io.IOExceptionjava.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecExceptionpublic static java.security.KeyStore createTrustStore(java.lang.String capem)
throws java.io.IOException,
java.security.cert.CertificateException,
java.security.KeyStoreException,
java.security.NoSuchAlgorithmException
java.io.IOExceptionjava.security.cert.CertificateExceptionjava.security.KeyStoreExceptionjava.security.NoSuchAlgorithmExceptionpublic static java.security.KeyStore createTrustStore(java.io.Reader certReader)
throws java.io.IOException,
java.security.cert.CertificateException,
java.security.KeyStoreException,
java.security.NoSuchAlgorithmException
java.io.IOExceptionjava.security.cert.CertificateExceptionjava.security.KeyStoreExceptionjava.security.NoSuchAlgorithmExceptionCopyright © 2020. All Rights Reserved.