public class KeywhizKeyStore extends Object
Modifier and Type | Class and Description |
---|---|
static class |
KeywhizKeyStore.Name
Keystore names.
|
Constructor and Description |
---|
KeywhizKeyStore(KeywhizKeyStore.Name name,
OneOpsConfig.TrustStore trustStoreConfig,
OneOpsConfig.Keystore keystoreConfig,
org.springframework.core.io.ResourceLoader loader)
Create a keywhiz key store to communicate with Keywhiz server.
|
Modifier and Type | Method and Description |
---|---|
KeyManager[] |
getKeyManagers()
Return new key managers from the keystore.
|
char[] |
getKeyPassword()
Returns the keystore password.
|
KeyStore |
getKeyStore()
Returns the keystore for Keywhiz automation client
|
TrustManager[] |
getTrustManagers()
Return new trust managers from the trust-store.
|
KeyStore |
getTrustStore()
Returns the keywhiz server trust store.
|
public KeywhizKeyStore(KeywhizKeyStore.Name name, OneOpsConfig.TrustStore trustStoreConfig, OneOpsConfig.Keystore keystoreConfig, org.springframework.core.io.ResourceLoader loader)
name
- Keystore nametrustStoreConfig
- OneOpsConfig.TrustStore
trust-store propertieskeystoreConfig
- OneOpsConfig.Keystore
keystore propertiesloader
- ResourceLoader
for loading resources from classpath for file system.@Nullable public KeyStore getTrustStore()
KeyStore
if it's configured, else returns null
@Nullable public KeyStore getKeyStore()
KeyStore
if it's configured, else returns null
@Nullable public char[] getKeyPassword()
null
if the keystore is empty.public TrustManager[] getTrustManagers() throws GeneralSecurityException
GeneralSecurityException
public KeyManager[] getKeyManagers() throws GeneralSecurityException
GeneralSecurityException
Copyright © 2018 Walmart, Inc.. All rights reserved.