public class BasicKeyStore extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_TYPE |
| Constructor and Description |
|---|
BasicKeyStore(String cert,
String password) |
BasicKeyStore(String key,
String cert,
String password) |
BasicKeyStore(String cert,
String password,
X509Certificate[] acceptedIssuers) |
| Modifier and Type | Method and Description |
|---|---|
void |
asFile(Consumer<File> c) |
protected static KeyStore |
createKeyStore(Reader keyReader,
Reader certReader,
String password) |
protected static KeyStore |
createTrustStore(Reader certReader) |
protected static KeyStore |
createTrustStore(Reader certReader,
X509Certificate[] acceptedIssuers) |
protected static PrivateKey |
getPrivateKeyFromPEM(Reader keyReader) |
KeyStore |
keyStore() |
protected static X509Certificate |
parseCert(org.bouncycastle.openssl.PEMParser parser) |
String |
password() |
void |
store(OutputStream out) |
void |
store(Path path) |
File |
storeTemp() |
byte[] |
toBytes() |
InputStream |
toInputStream() |
String |
type() |
protected static final String DEFAULT_TYPE
public BasicKeyStore(String key, String cert, String password) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException
public BasicKeyStore(String cert, String password) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException
public BasicKeyStore(String cert, String password, X509Certificate[] acceptedIssuers) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException
public String password()
public KeyStore keyStore()
public String type()
public InputStream toInputStream() throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException
public byte[] toBytes()
throws CertificateException,
NoSuchAlgorithmException,
KeyStoreException,
IOException
public void store(OutputStream out) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException
public void store(Path path) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException
public File storeTemp() throws IOException, CertificateException, NoSuchAlgorithmException, KeyStoreException
public void asFile(Consumer<File> c) throws IOException, CertificateException, NoSuchAlgorithmException, KeyStoreException
protected static KeyStore createKeyStore(Reader keyReader, Reader certReader, String password) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException
protected static PrivateKey getPrivateKeyFromPEM(Reader keyReader) throws IOException
IOExceptionprotected static KeyStore createTrustStore(Reader certReader) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException
protected static KeyStore createTrustStore(Reader certReader, X509Certificate[] acceptedIssuers) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException
protected static X509Certificate parseCert(org.bouncycastle.openssl.PEMParser parser) throws IOException, CertificateException
IOExceptionCertificateExceptionCopyright © 2022. All rights reserved.