> +import static org.jclouds.examples.rackspace.cloudservers.Constants.NAME; > +import static > org.jclouds.examples.rackspace.cloudservers.Constants.POLL_PERIOD_TWENTY_SECONDS; > +import static org.jclouds.examples.rackspace.cloudservers.Constants.PROVIDER; > +import static org.jclouds.examples.rackspace.cloudservers.Constants.ZONE; > +import static org.jclouds.scriptbuilder.domain.Statements.exec; > + > +/** > + * 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 CreateServerWithKeyPair implements Closeable { > + private final ComputeService computeService; > + private final RestContext<NovaApi, NovaAsyncApi> nova;
`novaApi`? `novaCtx`? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-examples/pull/30/files#r8825469
