use of com.sequenceiq.environment.api.v1.credential.model.parameters.aws.KeyBasedParameters in project cloudbreak by hortonworks.
the class AwsCloudProvider method awsCredentialDetailsKey.
public AwsCredentialParameters awsCredentialDetailsKey() {
AwsCredentialParameters parameters = new AwsCredentialParameters();
KeyBasedParameters keyBasedCredentialParameters = new KeyBasedParameters();
String accessKeyId = awsProperties.getCredential().getAccessKeyId();
keyBasedCredentialParameters.setAccessKey(accessKeyId);
String secretKey = awsProperties.getCredential().getSecretKey();
keyBasedCredentialParameters.setSecretKey(secretKey);
parameters.setKeyBased(keyBasedCredentialParameters);
return parameters;
}
use of com.sequenceiq.environment.api.v1.credential.model.parameters.aws.KeyBasedParameters in project cloudbreak by hortonworks.
the class EnvironmentServiceIntegrationTest method getAwsKeyBasedCredentialParameters.
private AwsCredentialParameters getAwsKeyBasedCredentialParameters(boolean govCloud, String yyy, String zzzz) {
AwsCredentialParameters aws = new AwsCredentialParameters();
aws.setGovCloud(govCloud);
KeyBasedParameters keyBased = new KeyBasedParameters();
keyBased.setAccessKey(yyy);
keyBased.setSecretKey(zzzz);
aws.setKeyBased(keyBased);
return aws;
}
use of com.sequenceiq.environment.api.v1.credential.model.parameters.aws.KeyBasedParameters in project cloudbreak by hortonworks.
the class AuditCredentialAuthorizationIntegrationTest method getAwsKeyBasedCredentialParameters.
private AwsCredentialParameters getAwsKeyBasedCredentialParameters() {
AwsCredentialParameters aws = new AwsCredentialParameters();
aws.setGovCloud(false);
KeyBasedParameters keyBased = new KeyBasedParameters();
keyBased.setAccessKey("accessKey");
keyBased.setSecretKey("secretKey");
aws.setKeyBased(keyBased);
return aws;
}
use of com.sequenceiq.environment.api.v1.credential.model.parameters.aws.KeyBasedParameters in project cloudbreak by hortonworks.
the class CredentialAuthorizationIntegrationTest method getAwsKeyBasedCredentialParameters.
private AwsCredentialParameters getAwsKeyBasedCredentialParameters() {
AwsCredentialParameters aws = new AwsCredentialParameters();
aws.setGovCloud(false);
KeyBasedParameters keyBased = new KeyBasedParameters();
keyBased.setAccessKey("accessKey");
keyBased.setSecretKey("secretKey");
aws.setKeyBased(keyBased);
return aws;
}
use of com.sequenceiq.environment.api.v1.credential.model.parameters.aws.KeyBasedParameters in project cloudbreak by hortonworks.
the class AwsCredentialV1ParametersToAwsCredentialAttributesConverter method getKeyBased.
private KeyBasedParameters getKeyBased(KeyBasedCredentialAttributes source) {
KeyBasedParameters keyBased = new KeyBasedParameters();
keyBased.setAccessKey(source.getAccessKey());
keyBased.setSecretKey(source.getSecretKey());
return keyBased;
}
Aggregations