use of com.sequenceiq.cloudbreak.client.SaltClientConfig in project cloudbreak by hortonworks.
the class GatewayConfigService method getSaltClientConfig.
private SaltClientConfig getSaltClientConfig(Stack stack) {
SecurityConfig securityConfig = stack.getSecurityConfig();
SaltSecurityConfig saltSecurityConfig = securityConfig.getSaltSecurityConfig();
String privateKey = saltSecurityConfig.getSaltBootSignPrivateKey();
String saltBootPassword = saltSecurityConfig.getSaltBootPassword();
String saltPassword = saltSecurityConfig.getSaltPassword();
return new SaltClientConfig(saltPassword, saltBootPassword, new String(Base64.decodeBase64(privateKey)));
}
use of com.sequenceiq.cloudbreak.client.SaltClientConfig in project cloudbreak by hortonworks.
the class GatewayConfigService method getSaltClientConfig.
private SaltClientConfig getSaltClientConfig(Stack stack) {
SecurityConfig securityConfig = stack.getSecurityConfig();
SaltSecurityConfig saltSecurityConfig = securityConfig.getSaltSecurityConfig();
String privateKey = saltSecurityConfig.getSaltBootSignPrivateKey();
String saltBootPassword = saltSecurityConfig.getSaltBootPassword();
String saltPassword = saltSecurityConfig.getSaltPassword();
return new SaltClientConfig(saltPassword, saltBootPassword, new String(Base64.decodeBase64(privateKey)));
}
Aggregations