com.ihr.xbrl.util
Class PasswordsVaultConfigurationManager
java.lang.Object
com.ihr.xbrl.util.PasswordsVaultConfigurationManager
public class PasswordsVaultConfigurationManager
- extends java.lang.Object
This class maintains a serialized vault of user names and passwords to be used by any
other Reporting Standard application when authentication is required
Passwords are encrypted/decrypted automatically so the user will not see the password written in the file
- Author:
- Ignacio
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PasswordsVaultConfigurationManager
public PasswordsVaultConfigurationManager(java.lang.String propertiesFileName)
getDefaultPropertiesFileName
public static java.lang.String getDefaultPropertiesFileName()
getProxyProperties
public java.util.Properties getProxyProperties()
setProxyProperties
public void setProxyProperties(java.util.Properties newProperties)
getPasswordAuthentication
public java.net.PasswordAuthentication getPasswordAuthentication(java.lang.String host,
java.lang.String protocol)
getCredentials
public java.util.Vector<java.util.Vector<java.lang.String>> getCredentials()
- Retuns stored credentials in order to facilitate a GUI to represent the vault content.
The returned value is a Vector of Vectors where the nested Vector contains three string,
the Host, the Protocol and the UserId
- Returns:
- Vector<Vector<String>>
delPassword
public void delPassword(java.lang.String host,
java.lang.String protocol)
savePassword
public void savePassword(java.lang.String user,
char[] password,
java.lang.String host,
java.lang.String protocol)
- Parameters:
text - password - host - protocol -
Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa