LibreOffice
LibreOffice 5.0 SDK API Reference
|
this service is kind of storage that allows to store passwords and to retrieve already stored. More...
import "PasswordContainer.idl";
Additional Inherited Members | |
![]() | |
interface | com::sun::star::task::XPasswordContainer |
handles passwords More... | |
interface | com::sun::star::task::XMasterPasswordHandling2 |
handles passwords More... | |
interface | com::sun::star::task::XUrlContainer |
![]() | |
void | add ([in] string Url,[in] string UserName,[in] sequence< string > Passwords,[in] XInteractionHandler Handler) |
Save passwords in to the container. More... | |
void | addPersistent ([in] string Url,[in] string UserName,[in] sequence< string > Passwords,[in] XInteractionHandler Handler) |
Save passwords in to the container, and store them in the file. More... | |
UrlRecord | find ([in] string Url,[in] XInteractionHandler Handler) |
Find users with passwords for the url pattern. More... | |
UrlRecord | findForName ([in] string Url,[in] string UserName,[in] XInteractionHandler Handler) |
Find passwords for the url pattern and username. More... | |
void | remove ([in] string Url,[in] string UserName) |
Remove passwords for the url pattern and username. More... | |
void | removePersistent ([in] string Url,[in] string UserName) |
Remove passwords for the url pattern and username from the file. More... | |
void | removeAllPersistent () |
Clean the file. More... | |
sequence< UrlRecord > | getAllPersistent ([in] XInteractionHandler Handler) |
Get all records from the file. More... | |
![]() | |
boolean | useDefaultMasterPassword ([in] XInteractionHandler xHandler) |
allows to let the default password be used More... | |
boolean | isDefaultMasterPasswordUsed () |
allows to detect whether the default master password is used More... | |
![]() | |
void | addUrl ([in] string Url,[in] boolean MakePersistent) |
Add a URL to the container. More... | |
string | findUrl ([in] string Url) |
Lookup a URL in the container. More... | |
void | removeUrl ([in] string Url) |
Remove a URL from the container. More... | |
sequence< string > | getUrls ([in] boolean OnlyPersistent) |
Get all URLs. More... | |
this service is kind of storage that allows to store passwords and to retrieve already stored.
A password can be stored for the session period or persistently. The persistent way is only possible if configuration allows to use storage. It stores passwords encrypted with a super password. An interaction is used to ask a user for a super password. To allow such an interaction, an object that implements XInteractionHandler interface should be provided. For this purpose InteractionHandler service can be used.
In case no interaction handler is provided all passwords are stored for the session period. In case an interaction handler is provided, but the super password interaction does not return super password ( for any reason ), NoMasterException exception is thrown to let user use non-persistent way explicitly.