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).


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

Constructor Detail

UserAdd

public UserAdd(com.google.common.base.Function<String,String> cryptFunction,
               String login,
               List<String> groups,
               @Nullable
               String password,
               @Nullable
               String installRSAPrivateKey,
               List<String> authorizeRSAPublicKeys,
               String defaultHome,
               String shell)

UserAdd

public UserAdd(com.google.common.base.Function<String,String> cryptFunction,
               String login,
               List<String> groups,
               @Nullable
               String password,
               @Nullable
               String installRSAPrivateKey,
               List<String> authorizeRSAPublicKeys,
               @Nullable
               String home,
               String defaultHome,
               String shell,
               String fullName)
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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.