@Test public void testKeyStorePwdWhenNothingIsGiven() { Cluster cluster = new Cluster(); String actualPwd = cluster.getKeyStorePwd(); Assertions.assertNull(actualPwd); }
public String getKeyStorePwd() { String pwd = getIfNotNull(keyStorePwd, Secret::getRaw); return isNotEmpty(pwd) ? pwd : getCloudbreakAmbariPassword(); }
Cluster implements ProvisionEntity, WorkspaceAwareResource { public String getKeyStorePwd() { String pwd = getIfNotNull(keyStorePwd, Secret::getRaw); return isNotEmpty(pwd) ? pwd : getCloudbreakAmbariPassword(); } }
Cluster implements ProvisionEntity, WorkspaceAwareResource { public String getKeyStorePwd() { String pwd = getIfNotNull(keyStorePwd, Secret::getRaw); return isNotEmpty(pwd) ? pwd : getCloudbreakAmbariPassword(); }  }
Cluster implements ProvisionEntity, WorkspaceAwareResource { public String getKeyStorePwd() { String pwd = getIfNotNull(keyStorePwd, Secret::getRaw); return isNotEmpty(pwd) ? pwd : getCloudbreakAmbariPassword(); }  String getEnvironmentCrn(); void setEnvironmentCrn(String environmentCrn); boolean hasGateway(); Stack getStack(); void setStack(Stack stack); String getDescription(); void setDescription(String description); Long getId(); void setId(Long id); String getVariant(); void setVariant(String variant); Blueprint getBlueprint(); void setBlueprint(Blueprint blueprint); String getName(); void setName(String name); Status getStatus(); void setStatus(Status status); Long getCreationStarted(); void setCreationStarted(Long creationStarted); Long getCreationFinished(); void setCreationFinished(Long creationFinished); Long getUpSince(); void setUpSince(Long upSince); String getStatusReason(); void setStatusReason(String statusReason); Set<HostGroup> getHostGroups(); void setHostGroups(Set<HostGroup> hostGroups); Set<Container> getContainers(); void setContainers(Set<Container> containers); boolean isCreateFailed(); Set<RDSConfig> getRdsConfigs(); void setRdsConfigs(Set<RDSConfig> rdsConfigs); FileSystem getFileSystem(); void setFileSystem(FileSystem fileSystem); String getUserName(); void setUserName(String userName); String getPassword(); void setPassword(String password); String getClusterManagerIp(); void setClusterManagerIp(String clusterManagerIp); boolean isClusterReadyForStop(); boolean isAvailable(); boolean isMaintenanceModeEnabled(); boolean isStopped(); boolean isStopFailed(); boolean isStartFailed(); boolean isStartRequested(); boolean isStopInProgress(); boolean isRequested(); boolean isDeleteInProgress(); boolean isDeleteCompleted(); boolean isClusterReadyForStart(); boolean isModificationInProgress(); String getAttributes(); void setAttributes(String attributes); String getDatabusCredential(); void setDatabusCredential(String databusCredential); Gateway getGateway(); void setGateway(Gateway gateway); ConfigStrategy getConfigStrategy(); void setConfigStrategy(ConfigStrategy configStrategy); String getCloudbreakAmbariUser(); String getCloudbreakClusterManagerUser(); String getCloudbreakAmbariUserSecret(); String getCloudbreakClusterManagerUserSecret(); String getCloudbreakClusterManagerMonitoringUser(); void setCloudbreakAmbariUser(String cloudbreakAmbariUser); void setCloudbreakUser(String cloudbreakAmbariUser); void setCloudbreakClusterManagerUser(String cloudbreakClusterManagerUser); void setCloudbreakClusterManagerMonitoringUser(String cloudbreakClusterManagerMonitoringUser); String getCloudbreakAmbariPassword(); String getCloudbreakClusterManagerPassword(); String getCloudbreakAmbariPasswordSecret(); String getCloudbreakClusterManagerPasswordSecret(); String getCloudbreakClusterManagerMonitoringPassword(); void setCloudbreakAmbariPassword(String cloudbreakAmbariPassword); void setCloudbreakPassword(String cloudbreakAmbariPassword); void setCloudbreakClusterManagerPassword(String password); void setCloudbreakClusterManagerMonitoringPassword(String cloudbreakClusterManagerMonitoringPassword); String getDpAmbariUser(); String getDpClusterManagerUser(); String getDpAmbariUserSecret(); String getDpClusterManagerUserSecret(); void setDpAmbariUser(String dpAmbariUser); void setDpUser(String dpAmbariUser); void setDpClusterManagerUser(String user); String getDpAmbariPassword(); String getDpClusterManagerPassword(); String getDpAmbariPasswordSecret(); String getDpClusterManagerPasswordSecret(); void setDpAmbariPassword(String dpAmbariPassword); void setDpPassword(String dpAmbariPassword); void setDpClusterManagerPassword(String password); String getKeyStorePwd(); void setKeyStorePwd(String keyStorePwd); String getTrustStorePwd(); void setTrustStorePwd(String trustStorePwd); Boolean getTopologyValidation(); void setTopologyValidation(Boolean topologyValidation); Json getCustomContainerDefinition(); void setCustomContainerDefinition(Json customContainerDefinition); Set<ClusterComponent> getComponents(); void setComponents(Set<ClusterComponent> components); ExecutorType getExecutorType(); void setExecutorType(ExecutorType executorType); String getUptime(); void setUptime(String uptime); String getAmbariSecurityMasterKey(); String getClusterManagerSecurityMasterKey(); void setAmbariSecurityMasterKey(String ambariSecurityMasterKey); void setSecurityMasterKey(String ambariSecurityMasterKey); void setClusterManagerSecurityMasterKey(String securityMasterKey); String getExtendedBlueprintText(); void setExtendedBlueprintText(String extendedBlueprintText); String getProxyConfigCrn(); void setProxyConfigCrn(String proxyConfigCrn); String getDatabaseServerCrn(); void setDatabaseServerCrn(String databaseServerCrn); Boolean getAutoTlsEnabled(); void setAutoTlsEnabled(Boolean autoTlsEnabled); String getFqdn(); void setFqdn(String fqdn); boolean isRangerRazEnabled(); void setRangerRazEnabled(boolean rangerRazEnabled); @Override Workspace getWorkspace(); @Override void setWorkspace(Workspace workspace); IdBroker getIdBroker(); void setIdBroker(IdBroker idBroker); CertExpirationState getCertExpirationState(); void setCertExpirationState(CertExpirationState certExpirationState); @Override boolean equals(Object o); @Override int hashCode(); }
Cluster implements ProvisionEntity, WorkspaceAwareResource { public String getKeyStorePwd() { String pwd = getIfNotNull(keyStorePwd, Secret::getRaw); return isNotEmpty(pwd) ? pwd : getCloudbreakAmbariPassword(); }  String getEnvironmentCrn(); void setEnvironmentCrn(String environmentCrn); boolean hasGateway(); Stack getStack(); void setStack(Stack stack); String getDescription(); void setDescription(String description); Long getId(); void setId(Long id); String getVariant(); void setVariant(String variant); Blueprint getBlueprint(); void setBlueprint(Blueprint blueprint); String getName(); void setName(String name); Status getStatus(); void setStatus(Status status); Long getCreationStarted(); void setCreationStarted(Long creationStarted); Long getCreationFinished(); void setCreationFinished(Long creationFinished); Long getUpSince(); void setUpSince(Long upSince); String getStatusReason(); void setStatusReason(String statusReason); Set<HostGroup> getHostGroups(); void setHostGroups(Set<HostGroup> hostGroups); Set<Container> getContainers(); void setContainers(Set<Container> containers); boolean isCreateFailed(); Set<RDSConfig> getRdsConfigs(); void setRdsConfigs(Set<RDSConfig> rdsConfigs); FileSystem getFileSystem(); void setFileSystem(FileSystem fileSystem); String getUserName(); void setUserName(String userName); String getPassword(); void setPassword(String password); String getClusterManagerIp(); void setClusterManagerIp(String clusterManagerIp); boolean isClusterReadyForStop(); boolean isAvailable(); boolean isMaintenanceModeEnabled(); boolean isStopped(); boolean isStopFailed(); boolean isStartFailed(); boolean isStartRequested(); boolean isStopInProgress(); boolean isRequested(); boolean isDeleteInProgress(); boolean isDeleteCompleted(); boolean isClusterReadyForStart(); boolean isModificationInProgress(); String getAttributes(); void setAttributes(String attributes); String getDatabusCredential(); void setDatabusCredential(String databusCredential); Gateway getGateway(); void setGateway(Gateway gateway); ConfigStrategy getConfigStrategy(); void setConfigStrategy(ConfigStrategy configStrategy); String getCloudbreakAmbariUser(); String getCloudbreakClusterManagerUser(); String getCloudbreakAmbariUserSecret(); String getCloudbreakClusterManagerUserSecret(); String getCloudbreakClusterManagerMonitoringUser(); void setCloudbreakAmbariUser(String cloudbreakAmbariUser); void setCloudbreakUser(String cloudbreakAmbariUser); void setCloudbreakClusterManagerUser(String cloudbreakClusterManagerUser); void setCloudbreakClusterManagerMonitoringUser(String cloudbreakClusterManagerMonitoringUser); String getCloudbreakAmbariPassword(); String getCloudbreakClusterManagerPassword(); String getCloudbreakAmbariPasswordSecret(); String getCloudbreakClusterManagerPasswordSecret(); String getCloudbreakClusterManagerMonitoringPassword(); void setCloudbreakAmbariPassword(String cloudbreakAmbariPassword); void setCloudbreakPassword(String cloudbreakAmbariPassword); void setCloudbreakClusterManagerPassword(String password); void setCloudbreakClusterManagerMonitoringPassword(String cloudbreakClusterManagerMonitoringPassword); String getDpAmbariUser(); String getDpClusterManagerUser(); String getDpAmbariUserSecret(); String getDpClusterManagerUserSecret(); void setDpAmbariUser(String dpAmbariUser); void setDpUser(String dpAmbariUser); void setDpClusterManagerUser(String user); String getDpAmbariPassword(); String getDpClusterManagerPassword(); String getDpAmbariPasswordSecret(); String getDpClusterManagerPasswordSecret(); void setDpAmbariPassword(String dpAmbariPassword); void setDpPassword(String dpAmbariPassword); void setDpClusterManagerPassword(String password); String getKeyStorePwd(); void setKeyStorePwd(String keyStorePwd); String getTrustStorePwd(); void setTrustStorePwd(String trustStorePwd); Boolean getTopologyValidation(); void setTopologyValidation(Boolean topologyValidation); Json getCustomContainerDefinition(); void setCustomContainerDefinition(Json customContainerDefinition); Set<ClusterComponent> getComponents(); void setComponents(Set<ClusterComponent> components); ExecutorType getExecutorType(); void setExecutorType(ExecutorType executorType); String getUptime(); void setUptime(String uptime); String getAmbariSecurityMasterKey(); String getClusterManagerSecurityMasterKey(); void setAmbariSecurityMasterKey(String ambariSecurityMasterKey); void setSecurityMasterKey(String ambariSecurityMasterKey); void setClusterManagerSecurityMasterKey(String securityMasterKey); String getExtendedBlueprintText(); void setExtendedBlueprintText(String extendedBlueprintText); String getProxyConfigCrn(); void setProxyConfigCrn(String proxyConfigCrn); String getDatabaseServerCrn(); void setDatabaseServerCrn(String databaseServerCrn); Boolean getAutoTlsEnabled(); void setAutoTlsEnabled(Boolean autoTlsEnabled); String getFqdn(); void setFqdn(String fqdn); boolean isRangerRazEnabled(); void setRangerRazEnabled(boolean rangerRazEnabled); @Override Workspace getWorkspace(); @Override void setWorkspace(Workspace workspace); IdBroker getIdBroker(); void setIdBroker(IdBroker idBroker); CertExpirationState getCertExpirationState(); void setCertExpirationState(CertExpirationState certExpirationState); @Override boolean equals(Object o); @Override int hashCode();  }