org.jclouds.scriptbuilder.statements.login
Class UserAdd

java.lang.Object
  extended by org.jclouds.scriptbuilder.statements.login.UserAdd
All Implemented Interfaces:
Statement

public class UserAdd
extends Object
implements Statement

Creates a statement that will add a given user to a machine ("login"), with optional password, groups, private key, and authorized keys.

This is supported on most *nix environments. Not currently supported on Windows.

Note that some places where this is used may have stricter requirements on the parameters (for example AdminAccess requires password and keys).

Author:
Adrian Cole

Nested Class Summary
static class UserAdd.Builder
           
 
Constructor Summary
UserAdd(String login, List<String> groups, String password, String installRSAPrivateKey, List<String> authorizeRSAPublicKeys, String defaultHome, String shell)
           
 
Method Summary
static UserAdd.Builder builder()
           
 boolean equals(Object obj)
           
 Iterable<String> functionDependencies(OsFamily family)
           
 int hashCode()
           
 String render(OsFamily family)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAdd

public UserAdd(String login,
               List<String> groups,
               @Nullable
               String password,
               @Nullable
               String installRSAPrivateKey,
               List<String> authorizeRSAPublicKeys,
               String defaultHome,
               String shell)
Method Detail

builder

public static UserAdd.Builder builder()

functionDependencies

public Iterable<String> functionDependencies(OsFamily family)
Specified by:
functionDependencies in interface Statement

render

public String render(OsFamily family)
Specified by:
render in interface Statement

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.