1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_task_PasswordContainer_idl__
24#define __com_sun_star_task_PasswordContainer_idl__
25
26module com {  module sun {  module star {
27	module task {
28        published interface XPasswordContainer;
29        published interface XMasterPasswordHandling;
30    };
31}; }; };
32
33module com {  module sun {  module star {  module task {
34//============================================================================
35/** this service is kind of storage that allows to store passwords
36	and to retrieve already stored.
37
38	<p>
39	A password can be stored for the session period or persistently.
40	The persistent way is only possible if configuration allows to use storage.
41	It stores passwords encripted with a super password. An interaction
42	is used to ask a user for a super password.
43	To allow such an interaction, an object that implements <type>XInteractionHandler</type>
44	interface should be provided. For this purpose <type>InteractionHandler</type>
45	service can be used.
46	</p>
47
48	<p>
49	In case no interaction handler is provided all passwords are stored
50	for the session period. In case an interaction handler is provided, but
51	the super password interaction does not return super password ( for any reason ),
52	<type>NoMasterException</type> exception is thrown to let user use
53	nonpersistent way explicitly.
54	</p>
55*/
56published service PasswordContainer
57{
58    //------------------------------------------------------------------------
59    /** handles passwords
60
61		<p>
62		Use this interface to store\retrieve passwords.
63		</p>
64     */
65	interface com::sun::star::task::XPasswordContainer;
66
67    //------------------------------------------------------------------------
68    /** handles passwords
69
70		<p>
71		Use this interface to store\retrieve passwords.
72		</p>
73     */
74    [optional] interface com::sun::star::task::XMasterPasswordHandling;
75};
76
77}; }; }; };
78#endif
79