org.jclouds.scriptbuilder.statements.login
Class ReplaceShadowPasswordEntry

java.lang.Object
  extended by org.jclouds.scriptbuilder.statements.login.ReplaceShadowPasswordEntry
All Implemented Interfaces:
Statement
Direct Known Subclasses:
ReplaceShadowPasswordEntryOfLoginUser

public class ReplaceShadowPasswordEntry
extends Object
implements Statement

Replaces the password entry for a user in the shadow file, using SHA-512 crypt syntax.


Constructor Summary
ReplaceShadowPasswordEntry(com.google.common.base.Function<String,String> cryptFunction, String login, String password)
           
 
Method Summary
 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

ReplaceShadowPasswordEntry

public ReplaceShadowPasswordEntry(com.google.common.base.Function<String,String> cryptFunction,
                                  String login,
                                  String password)
Method Detail

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-2014 The Apache Software Foundation. All Rights Reserved.