Class CertUtils
java.lang.Object
io.fabric8.kubernetes.client.internal.CertUtils
public class CertUtils extends Object
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_STORE_PASSWORD_SYSTEM_PROPERTYstatic StringKEY_STORE_SYSTEM_PROPERTYstatic StringTRUST_STORE_PASSWORD_SYSTEM_PROPERTYstatic StringTRUST_STORE_SYSTEM_PROPERTY -
Constructor Summary
Constructors Constructor Description CertUtils() -
Method Summary
Modifier and Type Method Description static KeyStorecreateKeyStore(InputStream certInputStream, InputStream keyInputStream, String clientKeyAlgo, char[] clientKeyPassphrase, String keyStoreFile, char[] keyStorePassphrase)static KeyStorecreateKeyStore(String clientCertData, String clientCertFile, String clientKeyData, String clientKeyFile, String clientKeyAlgo, String clientKeyPassphrase, String keyStoreFile, String keyStorePassphrase)static KeyStorecreateTrustStore(InputStream pemInputStream, String trustStoreFile, char[] trustStorePassphrase)static KeyStorecreateTrustStore(String caCertData, String caCertFile, String trustStoreFile, String trustStorePassphrase)static InputStreamgetInputStreamFromDataOrFile(String data, String file)
-
Field Details
-
Constructor Details
-
CertUtils
public CertUtils()
-
-
Method Details
-
getInputStreamFromDataOrFile
public static InputStream getInputStreamFromDataOrFile(String data, String file) throws IOException- Throws:
IOException
-
createTrustStore
public static KeyStore createTrustStore(String caCertData, String caCertFile, String trustStoreFile, String trustStorePassphrase) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException -
createTrustStore
public static KeyStore createTrustStore(InputStream pemInputStream, String trustStoreFile, char[] trustStorePassphrase) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException -
createKeyStore
public static KeyStore createKeyStore(InputStream certInputStream, InputStream keyInputStream, String clientKeyAlgo, char[] clientKeyPassphrase, String keyStoreFile, char[] keyStorePassphrase) throws IOException, CertificateException, NoSuchAlgorithmException, InvalidKeySpecException, KeyStoreException -
createKeyStore
public static KeyStore createKeyStore(String clientCertData, String clientCertFile, String clientKeyData, String clientKeyFile, String clientKeyAlgo, String clientKeyPassphrase, String keyStoreFile, String keyStorePassphrase) throws IOException, CertificateException, NoSuchAlgorithmException, InvalidKeySpecException, KeyStoreException
-