public static class KeyConfig.KeystoreBuilder
extends java.lang.Object
KeyConfig.keystoreBuilder().| Constructor | Description |
|---|---|
KeystoreBuilder() |
| Modifier and Type | Method | Description |
|---|---|---|
KeyConfig.KeystoreBuilder |
addCertAlias(java.lang.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(java.lang.String alias) |
Alias of X.509 certificate of public key.
|
KeyConfig.KeystoreBuilder |
certChainAlias(java.lang.String alias) |
Alias of an X.509 chain.
|
KeyConfig.KeystoreBuilder |
from(Config config) |
Update this builder from configuration.
|
KeyConfig.KeystoreBuilder |
keyAlias(java.lang.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(java.lang.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(java.lang.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(java.lang.String keystoreType)
keystoreType - keystore type to load the keypublic KeyConfig.KeystoreBuilder keystorePassphrase(char[] keystorePassphrase)
keystorePassphrase - keystore pass-phrasepublic KeyConfig.KeystoreBuilder keyAlias(java.lang.String keyAlias)
keyAlias - alias of the key in the keystorepublic KeyConfig.KeystoreBuilder certAlias(java.lang.String alias)
alias - alias under which the certificate is stored in the keystorepublic KeyConfig.KeystoreBuilder certChainAlias(java.lang.String alias)
alias - alias of certificate chain in the keystorepublic KeyConfig.KeystoreBuilder keyPassphrase(char[] privateKeyPassphrase)
privateKeyPassphrase - pass-phrase of the keypublic KeyConfig build()
KeyConfig based on this builder.public KeyConfig.Builder toFullBuilder()
KeyConfig from this keystore builder. This allows you to enhance the config
with additional (explicit) fields.KeyConfigpublic KeyConfig.KeystoreBuilder from(Config config)
config - configuration instanceCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.