SslContextBuilder.builder().@Deprecated public final class KeyStoreLoader extends Object
KeyStores.| Modifier and Type | Method and Description |
|---|---|
static KeyStore |
fromFile(String path)
Deprecated.
Loads a
KeyStore from an on-disk file with no passphrase. |
static KeyStore |
fromStream(InputStream stream)
Deprecated.
Loads a
KeyStore from an InputStream with no passphrase. |
static KeyStore |
fromStream(InputStream stream,
char[] passphrase)
Deprecated.
Loads a
KeyStore from an InputStream. |
static KeyStore |
fromStream(String path,
char[] passphrase)
Deprecated.
Loads a
KeyStore from an on-disk file. |
public static KeyStore fromStream(InputStream stream) throws IOException, GeneralSecurityException
KeyStore from an InputStream with no passphrase.stream - A byte stream containing the key store.KeyStore.IOExceptionGeneralSecurityExceptionpublic static KeyStore fromStream(InputStream stream, char[] passphrase) throws IOException, GeneralSecurityException
KeyStore from an InputStream.stream - A byte stream containing the key store.passphrase - The passphrase the stream is encrypted with.KeyStore.IOExceptionGeneralSecurityExceptionpublic static KeyStore fromFile(String path) throws IOException, GeneralSecurityException
KeyStore from an on-disk file with no passphrase.path - The path of the file containing the key store.KeyStore.IOExceptionGeneralSecurityExceptionpublic static KeyStore fromStream(String path, char[] passphrase) throws IOException, GeneralSecurityException
KeyStore from an on-disk file.path - The path of the file containing the key store.passphrase - The passphrase the file is encrypted with.KeyStore.IOExceptionGeneralSecurityExceptionCopyright © 2019. All rights reserved.