merge the formfield patch from ooo-build
[ooovba.git] / offapi / com / sun / star / task / PasswordContainer.idl
blob79b8345ddca7c85e427c79df8333cfd49cea7346
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: PasswordContainer.idl,v $
10 * $Revision: 1.10 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_task_PasswordContainer_idl__
31 #define __com_sun_star_task_PasswordContainer_idl__
33 module com { module sun { module star {
34 module task {
35 published interface XPasswordContainer;
36 published interface XMasterPasswordHandling;
38 }; }; };
40 module com { module sun { module star { module task {
41 //============================================================================
42 /** this service is kind of storage that allows to store passwords
43 and to retrieve already stored.
45 <p>
46 A password can be stored for the session period or persistently.
47 The persistent way is only possible if configuration allows to use storage.
48 It stores passwords encripted with a super password. An interaction
49 is used to ask a user for a super password.
50 To allow such an interaction, an object that implements <type>XInteractionHandler</type>
51 interface should be provided. For this purpose <type>InteractionHandler</type>
52 service can be used.
53 </p>
55 <p>
56 In case no interaction handler is provided all passwords are stored
57 for the session period. In case an interaction handler is provided, but
58 the super password interaction does not return super password ( for any reason ),
59 <type>NoMasterException</type> exception is thrown to let user use
60 nonpersistent way explicitly.
61 </p>
63 published service PasswordContainer
65 //------------------------------------------------------------------------
66 /** handles passwords
68 <p>
69 Use this interface to store\retrieve passwords.
70 </p>
72 interface com::sun::star::task::XPasswordContainer;
74 //------------------------------------------------------------------------
75 /** handles passwords
77 <p>
78 Use this interface to store\retrieve passwords.
79 </p>
81 [optional] interface com::sun::star::task::XMasterPasswordHandling;
84 }; }; }; };
85 #endif