org.jclouds.scriptbuilder.statements.login
Class AdminAccess

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

public class AdminAccess
extends Object
implements Statement

Controls the administrative access to a node. By default, it will perform the following:

Author:
Adrian Cole

Nested Class Summary
static class AdminAccess.Builder
           
protected static class AdminAccess.Config
           
static interface AdminAccess.Configuration
           
 
Constructor Summary
protected AdminAccess(AdminAccess.Config in)
           
 
Method Summary
static AdminAccess.Builder builder()
           
static AdminAccess.Builder builder(com.google.common.base.Function<String,String> cryptFunction)
           
 Iterable<String> functionDependencies(OsFamily family)
           
 Credentials getAdminCredentials()
           
 String getAdminPassword()
           
 AdminAccess init(AdminAccess.Configuration configuration)
           
 String render(OsFamily family)
           
 boolean shouldGrantSudoToAdminUser()
           
static AdminAccess standard()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminAccess

protected AdminAccess(AdminAccess.Config in)
Method Detail

builder

public static AdminAccess.Builder builder()

builder

public static AdminAccess.Builder builder(com.google.common.base.Function<String,String> cryptFunction)

standard

public static AdminAccess standard()

getAdminCredentials

@Nullable
public Credentials getAdminCredentials()
Returns:
new credentials or null if unchanged or unavailable

getAdminPassword

@Nullable
public String getAdminPassword()

shouldGrantSudoToAdminUser

public boolean shouldGrantSudoToAdminUser()

functionDependencies

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

init

public AdminAccess init(AdminAccess.Configuration configuration)

render

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


Copyright © 2009-2012 jclouds. All Rights Reserved.