public class PasswordsVaultConfigurationManager
extends java.lang.Object
Passwords are encrypted/decrypted automatically so the user will not see the password written in the file.
Constructor and Description |
---|
PasswordsVaultConfigurationManager(java.lang.String propertiesFileName)
Instantiates a new passwords vault configuration manager.
|
Modifier and Type | Method and Description |
---|---|
void |
delPassword(java.lang.String host,
java.lang.String protocol)
Del password.
|
java.util.Collection<java.util.Collection<java.lang.String>> |
getCredentials()
Retuns stored credentials in order to facilitate a GUI to represent the vault content.
|
static java.lang.String |
getDefaultPropertiesFileName()
Gets the default properties file name.
|
java.net.PasswordAuthentication |
getPasswordAuthentication(java.lang.String host,
java.lang.String protocol)
Gets the password authentication.
|
java.util.Properties |
getProxyProperties()
Gets the proxy properties.
|
void |
savePassword(java.lang.String user,
char[] password,
java.lang.String host,
java.lang.String protocol)
Save password.
|
void |
setProxyProperties(java.util.Properties newProperties)
Sets the proxy properties.
|
public PasswordsVaultConfigurationManager(java.lang.String propertiesFileName)
propertiesFileName
- the properties file namepublic static java.lang.String getDefaultPropertiesFileName()
public java.util.Properties getProxyProperties()
public void setProxyProperties(java.util.Properties newProperties)
newProperties
- the new proxy propertiespublic java.net.PasswordAuthentication getPasswordAuthentication(java.lang.String host, java.lang.String protocol)
host
- the hostprotocol
- the protocolpublic java.util.Collection<java.util.Collection<java.lang.String>> getCredentials()
The returned value is a Vector of Vectors where the nested Vector contains three string, the Host, the Protocol and the UserId
public void delPassword(java.lang.String host, java.lang.String protocol)
host
- the hostprotocol
- the protocolpublic void savePassword(java.lang.String user, char[] password, java.lang.String host, java.lang.String protocol)
user
- the userpassword
- the passwordhost
- the hostprotocol
- the protocolCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa