org.n0pe.asadmin.commands
Class CreateFileUser

java.lang.Object
  extended by org.n0pe.asadmin.AbstractAsAdminCmd
      extended by org.n0pe.asadmin.commands.CreateFileUser
All Implemented Interfaces:
IAsAdminCmd

public class CreateFileUser
extends AbstractAsAdminCmd


Field Summary
static String CREATE_FILE_USER
           
static String GROUPS
           
 
Fields inherited from class org.n0pe.asadmin.AbstractAsAdminCmd
EMPTY_ARRAY
 
Constructor Summary
CreateFileUser(String userName)
           
 
Method Summary
 String getActionCommand()
           
 String[] getParameters()
           
 String handlePasswordFile(String configuredPasswordFile)
          Hooks called by AsAdmin to allow commands to impact the configured password file.
 boolean needCredentials()
           
 CreateFileUser withGroup(String group)
           
 CreateFileUser withPassword(char[] password)
           
 
Methods inherited from class org.n0pe.asadmin.AbstractAsAdminCmd
failOnNonZeroExit, getErrorOutput, getStandardOutput, setOkayErrorPattern, setOkayStdOutPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATE_FILE_USER

public static final String CREATE_FILE_USER
See Also:
Constant Field Values

GROUPS

public static final String GROUPS
See Also:
Constant Field Values
Constructor Detail

CreateFileUser

public CreateFileUser(String userName)
Method Detail

withPassword

public CreateFileUser withPassword(char[] password)

withGroup

public CreateFileUser withGroup(String group)

needCredentials

public boolean needCredentials()

getActionCommand

public String getActionCommand()

getParameters

public String[] getParameters()

handlePasswordFile

public String handlePasswordFile(String configuredPasswordFile)
                          throws AsAdminException
Description copied from interface: IAsAdminCmd
Hooks called by AsAdmin to allow commands to impact the configured password file.

Specified by:
handlePasswordFile in interface IAsAdminCmd
Overrides:
handlePasswordFile in class AbstractAsAdminCmd
Parameters:
configuredPasswordFile - Configured password file
Returns:
Password file, same or changed if needed
Throws:
AsAdminException


Copyright © 2013. All Rights Reserved.