public final class SslContextBuilder extends Object implements KeyStoreStep, KeyManagerAlgorithmStep, KeyManagerPasswordStep, ProtocolStep, SslContextStep
| Modifier and Type | Method and Description |
|---|---|
static KeyStoreStep |
builder()
This is the main entry point.
|
SSLContext |
buildMergedWithSystem() |
ProtocolStep |
keyStoreFromStream(InputStream stream,
String password) |
KeyManagerPasswordStep |
usingAlgorithm(String keyManagerAlgorithm) |
SslContextStep |
usingKeyManagerPassword(String keyManagerPwd) |
KeyManagerAlgorithmStep |
usingProtocol(String socketProtocol) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkeyStoreFromFile, keyStoreFromFile, keyStoreFromStreamusingDefaultAlgorithm, usingSunX509usingKeyManagerPasswordFromKeyStoreusingTLSbuildMergedWithSystemAndSetDefaultpublic static KeyStoreStep builder()
public ProtocolStep keyStoreFromStream(InputStream stream, String password) throws IOException, GeneralSecurityException
keyStoreFromStream in interface KeyStoreStepIOExceptionGeneralSecurityExceptionpublic KeyManagerAlgorithmStep usingProtocol(String socketProtocol)
usingProtocol in interface ProtocolSteppublic KeyManagerPasswordStep usingAlgorithm(String keyManagerAlgorithm)
usingAlgorithm in interface KeyManagerAlgorithmStepkeyManagerAlgorithm - The algorithm for the custom key store. Defaults to system one, if null.public SslContextStep usingKeyManagerPassword(String keyManagerPwd)
usingKeyManagerPassword in interface KeyManagerPasswordStepkeyManagerPwd - The password to init KeyManagerFactory. Defaults to KeyStore password, if null.public SSLContext buildMergedWithSystem() throws GeneralSecurityException
buildMergedWithSystem in interface SslContextStepGeneralSecurityExceptionCopyright © 2019. All rights reserved.