Search in sources :

Example 1 with KeyBasedParameters

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;
}
Also used : KeyBasedParameters(com.sequenceiq.environment.api.v1.credential.model.parameters.aws.KeyBasedParameters) AwsCredentialParameters(com.sequenceiq.environment.api.v1.credential.model.parameters.aws.AwsCredentialParameters)

Example 2 with KeyBasedParameters

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;
}
Also used : KeyBasedParameters(com.sequenceiq.environment.api.v1.credential.model.parameters.aws.KeyBasedParameters) AwsCredentialParameters(com.sequenceiq.environment.api.v1.credential.model.parameters.aws.AwsCredentialParameters)

Example 3 with KeyBasedParameters

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;
}
Also used : KeyBasedParameters(com.sequenceiq.environment.api.v1.credential.model.parameters.aws.KeyBasedParameters) AwsCredentialParameters(com.sequenceiq.environment.api.v1.credential.model.parameters.aws.AwsCredentialParameters)

Example 4 with KeyBasedParameters

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;
}
Also used : KeyBasedParameters(com.sequenceiq.environment.api.v1.credential.model.parameters.aws.KeyBasedParameters) AwsCredentialParameters(com.sequenceiq.environment.api.v1.credential.model.parameters.aws.AwsCredentialParameters)

Example 5 with KeyBasedParameters

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;
}
Also used : KeyBasedParameters(com.sequenceiq.environment.api.v1.credential.model.parameters.aws.KeyBasedParameters)

Aggregations

KeyBasedParameters (com.sequenceiq.environment.api.v1.credential.model.parameters.aws.KeyBasedParameters)5 AwsCredentialParameters (com.sequenceiq.environment.api.v1.credential.model.parameters.aws.AwsCredentialParameters)4