public class CommandLineMasterPasswordProvider extends Object implements MasterPasswordProvider
MasterPasswordProvider
that reads Credential Manager's
master password from stdin (pipe or terminal) is -cmpassword option is present in command
line arguments. Otherwise it tries to read it from a special file password.txt in a special
directory specified by -cmdir option, if present.MasterPasswordProvider.ProviderComparator
Constructor and Description |
---|
CommandLineMasterPasswordProvider(CommandLineOptions commandLineOptions) |
Modifier and Type | Method and Description |
---|---|
String |
getMasterPassword(boolean firstTime) |
int |
getProviderPriority() |
void |
setMasterPassword(String masterPassword) |
public CommandLineMasterPasswordProvider(CommandLineOptions commandLineOptions)
public String getMasterPassword(boolean firstTime)
getMasterPassword
in interface MasterPasswordProvider
public void setMasterPassword(String masterPassword)
setMasterPassword
in interface MasterPasswordProvider
public int getProviderPriority()
getProviderPriority
in interface MasterPasswordProvider
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.