Search in sources :

Example 6 with StackAuthenticationRequest

use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.security.StackAuthenticationRequest in project cloudbreak by hortonworks.

the class StackToCreateFreeIpaRequestConverter method getStackAuthenticationRequest.

private StackAuthenticationRequest getStackAuthenticationRequest(StackAuthentication stackAuthentication) {
    StackAuthenticationRequest request = null;
    if (stackAuthentication != null) {
        request = new StackAuthenticationRequest();
        request.setLoginUserName(stackAuthentication.getLoginUserName());
        request.setPublicKey(stackAuthentication.getPublicKey());
        request.setPublicKeyId(stackAuthentication.getPublicKeyId());
    }
    LOGGER.debug("Created stack authentication request {} from stack authentication {}", request, stackAuthentication);
    return request;
}
Also used : StackAuthenticationRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.security.StackAuthenticationRequest)

Aggregations

StackAuthenticationRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.security.StackAuthenticationRequest)6 TelemetryRequest (com.sequenceiq.common.api.telemetry.request.TelemetryRequest)3 FreeIpaServerRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.FreeIpaServerRequest)3 InstanceGroupRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceGroupRequest)3 CreateFreeIpaRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.create.CreateFreeIpaRequest)3 Telemetry (com.sequenceiq.common.api.telemetry.model.Telemetry)2 Backup (com.sequenceiq.freeipa.api.model.Backup)2 NetworkRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.network.NetworkRequest)2 InstanceGroup (com.sequenceiq.freeipa.entity.InstanceGroup)2 Network (com.sequenceiq.freeipa.entity.Network)2 Stack (com.sequenceiq.freeipa.entity.Stack)2 StackAuthentication (com.sequenceiq.freeipa.entity.StackAuthentication)2 Test (org.junit.jupiter.api.Test)2 StackAuthenticationV4Request (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.authentication.StackAuthenticationV4Request)1 StackTags (com.sequenceiq.cloudbreak.cloud.model.StackTags)1 AwsInstanceTemplate (com.sequenceiq.cloudbreak.cloud.model.instance.AwsInstanceTemplate)1 Json (com.sequenceiq.cloudbreak.common.json.Json)1 BackupRequest (com.sequenceiq.common.api.backup.request.BackupRequest)1 AdlsGen2CloudStorageV1Parameters (com.sequenceiq.common.api.cloudstorage.old.AdlsGen2CloudStorageV1Parameters)1 GcsCloudStorageV1Parameters (com.sequenceiq.common.api.cloudstorage.old.GcsCloudStorageV1Parameters)1