> +import com.google.common.collect.Iterables;
> +import com.google.common.io.Closeables;
> +import com.google.inject.Module;
> +
> +import org.apache.commons.codec.binary.Base64;
> +
> +/**
> + * Create a public key in the cloud and write the private key file to the 
> local working directory. The public key and
> + * private key together are known as a key pair (see 
> http://en.wikipedia.org/wiki/Public-key_cryptography). This
> + * is a security feature that allows you to login to a server using a 
> private key file.
> + *
> + * Create a server with the public key, use the private key to login to it, 
> and disable password authentication.
> + */
> +public class CreateServerWithUserData implements Closeable {
> +   private final ComputeService computeService;
> +   private final RestContext<NovaApi, NovaAsyncApi> novaContext;

Any reason to use the deprecated async API and not go straight for NovaApi here?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/32/files#r10190684

Reply via email to