public static final class KeyConfig.KeystoreBuilder extends Object implements Builder<KeyConfig>
KeyConfig.keystoreBuilder().| Modifier and Type | Method and Description |
|---|---|
KeyConfig.KeystoreBuilder |
addCertAlias(String alias)
Add an alias to list of aliases used to generate a trusted set of certificates.
|
KeyConfig |
build()
Create an instance of
KeyConfig based on this builder. |
KeyConfig.KeystoreBuilder |
certAlias(String alias)
Alias of X.509 certificate of public key.
|
KeyConfig.KeystoreBuilder |
certChainAlias(String alias)
Alias of an X.509 chain.
|
KeyConfig.KeystoreBuilder |
config(Config config)
Update this builder from configuration.
|
KeyConfig.KeystoreBuilder |
keyAlias(String keyAlias)
Alias of the private key in the keystore.
|
KeyConfig.KeystoreBuilder |
keyPassphrase(char[] privateKeyPassphrase)
Pass-phrase of the key in the keystore (used for private keys).
|
KeyConfig.KeystoreBuilder |
keystore(Resource keystore)
Keystore resource definition.
|
KeyConfig.KeystoreBuilder |
keystorePassphrase(char[] keystorePassphrase)
Pass-phrase of the keystore (supported with JKS and PKCS12 keystores).
|
KeyConfig.KeystoreBuilder |
keystoreType(String keystoreType)
Set type of keystore.
|
KeyConfig.Builder |
toFullBuilder()
Create a builder for
KeyConfig from this keystore builder. |
KeyConfig.KeystoreBuilder |
trustStore()
If you want to build a trust store, call this method to add all
certificates present in the keystore to certificate list.
|
public KeyConfig.KeystoreBuilder trustStore()
public KeyConfig.KeystoreBuilder addCertAlias(String alias)
alias - alias of a certificatepublic KeyConfig.KeystoreBuilder keystore(Resource keystore)
keystore - keystore resource, from file path, classpath, URL etc.public KeyConfig.KeystoreBuilder keystoreType(String keystoreType)
keystoreType - keystore type to load the keypublic KeyConfig.KeystoreBuilder keystorePassphrase(char[] keystorePassphrase)
keystorePassphrase - keystore pass-phrasepublic KeyConfig.KeystoreBuilder keyAlias(String keyAlias)
keyAlias - alias of the key in the keystorepublic KeyConfig.KeystoreBuilder certAlias(String alias)
alias - alias under which the certificate is stored in the keystorepublic KeyConfig.KeystoreBuilder certChainAlias(String alias)
alias - alias of certificate chain in the keystorepublic KeyConfig.KeystoreBuilder keyPassphrase(char[] privateKeyPassphrase)
privateKeyPassphrase - pass-phrase of the keypublic KeyConfig.Builder toFullBuilder()
KeyConfig from this keystore builder. This allows you to enhance the config
with additional (explicit) fields.KeyConfigpublic KeyConfig.KeystoreBuilder config(Config config)
config - configuration instanceCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.