1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10*d1766043SAndrew Rist *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*d1766043SAndrew Rist *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19*d1766043SAndrew Rist *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_ucb_XInteractionSupplyAuthentication_idl__
24cdf0e10cSrcweir#define __com_sun_star_ucb_XInteractionSupplyAuthentication_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_task_XInteractionContinuation_idl__
27cdf0e10cSrcweir#include <com/sun/star/task/XInteractionContinuation.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __com_sun_star_ucb_RememberAuthentication_idl__
31cdf0e10cSrcweir#include <com/sun/star/ucb/RememberAuthentication.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir
35cdf0e10cSrcweir//=============================================================================
36cdf0e10cSrcweir
37cdf0e10cSrcweirmodule com { module sun { module star { module ucb {
38cdf0e10cSrcweir
39cdf0e10cSrcweir//=============================================================================
40cdf0e10cSrcweir/** An interaction continuation handing back some authentication data.
41cdf0e10cSrcweir
42cdf0e10cSrcweir	<p> This continuation is typically used in conjunction with
43cdf0e10cSrcweir	<type>AuthenticationRequest</type>. </p>
44cdf0e10cSrcweir*/
45cdf0e10cSrcweirpublished interface XInteractionSupplyAuthentication: com::sun::star::task::XInteractionContinuation
46cdf0e10cSrcweir{
47cdf0e10cSrcweir	//-------------------------------------------------------------------------
48cdf0e10cSrcweir	/** Specifies if a new 'realm' value can be handed back.
49cdf0e10cSrcweir	*/
50cdf0e10cSrcweir	boolean canSetRealm();
51cdf0e10cSrcweir
52cdf0e10cSrcweir	//-------------------------------------------------------------------------
53cdf0e10cSrcweir	/** Set a new 'realm' value to hand back.
54cdf0e10cSrcweir
55cdf0e10cSrcweir		<p>This method should be called before
56cdf0e10cSrcweir        <member scope="com::sun::star::task">XInteractionContinuation::select</member>,
57cdf0e10cSrcweir        and should only	be called if
58cdf0e10cSrcweir        <member>XInteractionSupplyAuthentication::canSetRealm</member> returned
59cdf0e10cSrcweir        <true/>.</p>
60cdf0e10cSrcweir	*/
61cdf0e10cSrcweir	void setRealm( [in] string Realm );
62cdf0e10cSrcweir
63cdf0e10cSrcweir	//-------------------------------------------------------------------------
64cdf0e10cSrcweir	/** Specifies if a 'user name' value can be handed back.
65cdf0e10cSrcweir	*/
66cdf0e10cSrcweir	boolean canSetUserName();
67cdf0e10cSrcweir
68cdf0e10cSrcweir	//-------------------------------------------------------------------------
69cdf0e10cSrcweir	/** Set a new 'user name' value to hand back.
70cdf0e10cSrcweir
71cdf0e10cSrcweir		<p>This method should be called before
72cdf0e10cSrcweir        <member scope="com::sun::star::task">XInteractionContinuation::select</member>,
73cdf0e10cSrcweir        and should only	be called if
74cdf0e10cSrcweir        <member>XInteractionSupplyAuthentication::canSetUserName</member>
75cdf0e10cSrcweir        returned <true/>.</p>
76cdf0e10cSrcweir	*/
77cdf0e10cSrcweir	void setUserName( [in] string UserName );
78cdf0e10cSrcweir
79cdf0e10cSrcweir	//-------------------------------------------------------------------------
80cdf0e10cSrcweir	/** Specifies if a 'password' value can be handed back.
81cdf0e10cSrcweir	*/
82cdf0e10cSrcweir	boolean canSetPassword();
83cdf0e10cSrcweir
84cdf0e10cSrcweir	//-------------------------------------------------------------------------
85cdf0e10cSrcweir	/** Set a new 'password' value to hand back.
86cdf0e10cSrcweir
87cdf0e10cSrcweir		<p>This method should be called before
88cdf0e10cSrcweir        <member scope="com::sun::star::task">XInteractionContinuation::select</member>,
89cdf0e10cSrcweir        and should only	be called if
90cdf0e10cSrcweir        <member>XInteractionSupplyAuthentication::canSetPassword</member>
91cdf0e10cSrcweir        returned <true/>.</p>
92cdf0e10cSrcweir	*/
93cdf0e10cSrcweir	void setPassword( [in] string Password );
94cdf0e10cSrcweir
95cdf0e10cSrcweir	//-------------------------------------------------------------------------
96cdf0e10cSrcweir	/** Specifies the available modes of how long to remember the password.
97cdf0e10cSrcweir
98cdf0e10cSrcweir		@param Default
99cdf0e10cSrcweir		Returns the default mode (to be initially displayed to the user).
100cdf0e10cSrcweir
101cdf0e10cSrcweir		@returns
102cdf0e10cSrcweir		A sequence of available modes to hand back.  Each individual mode
103cdf0e10cSrcweir		should appear at most once in the sequence.  If the sequence is	empty,
104cdf0e10cSrcweir		a new mode cannot be handed back.
105cdf0e10cSrcweir	*/
106cdf0e10cSrcweir	sequence<com::sun::star::ucb::RememberAuthentication> getRememberPasswordModes( [out] com::sun::star::ucb::RememberAuthentication Default );
107cdf0e10cSrcweir
108cdf0e10cSrcweir	//-------------------------------------------------------------------------
109cdf0e10cSrcweir	/** Set a new mode of how long to remember the password.
110cdf0e10cSrcweir
111cdf0e10cSrcweir		<p>This method should be called before
112cdf0e10cSrcweir        <member scope="com::sun::star::task">XInteractionContinuation::select</member>,
113cdf0e10cSrcweir        and should only	be called if
114cdf0e10cSrcweir        <member>XInteractionSupplyAuthentication::setPassword</member>
115cdf0e10cSrcweir        is also called.</p>
116cdf0e10cSrcweir
117cdf0e10cSrcweir		@param Remember
118cdf0e10cSrcweir        The mode to hand back, should be contained in the sequence returned by
119cdf0e10cSrcweir        <member>XInteractionSupplyAuthentication::getRememberPasswordModes</member>.
120cdf0e10cSrcweir	*/
121cdf0e10cSrcweir	void setRememberPassword( [in] com::sun::star::ucb::RememberAuthentication Remember );
122cdf0e10cSrcweir
123cdf0e10cSrcweir	//-------------------------------------------------------------------------
124cdf0e10cSrcweir	/** Specifies if an 'account' value can be handed back.
125cdf0e10cSrcweir	*/
126cdf0e10cSrcweir	boolean canSetAccount();
127cdf0e10cSrcweir
128cdf0e10cSrcweir	//-------------------------------------------------------------------------
129cdf0e10cSrcweir	/** Set a new 'account' value to hand back.
130cdf0e10cSrcweir
131cdf0e10cSrcweir		<p>This method should be called before
132cdf0e10cSrcweir        <member scope="com::sun::star::task">XInteractionContinuation::select</member>,
133cdf0e10cSrcweir        and should only	be called if
134cdf0e10cSrcweir        <member>XInteractionSupplyAuthentication::canSetAccount</member>
135cdf0e10cSrcweir        returned <true/>.</p>
136cdf0e10cSrcweir
137cdf0e10cSrcweir	*/
138cdf0e10cSrcweir	void setAccount( [in] string Account );
139cdf0e10cSrcweir
140cdf0e10cSrcweir	//-------------------------------------------------------------------------
141cdf0e10cSrcweir	/** Specifies the available modes of how long to remember the account.
142cdf0e10cSrcweir
143cdf0e10cSrcweir		@param Default  Returns the default mode (to be initially displayed to
144cdf0e10cSrcweir		the user).
145cdf0e10cSrcweir
146cdf0e10cSrcweir		@returns  A sequence of available modes to hand back.  Each individual
147cdf0e10cSrcweir		mode should appear at most once in the sequence.  If the sequence is
148cdf0e10cSrcweir		empty, a new mode cannot be handed back.
149cdf0e10cSrcweir	 */
150cdf0e10cSrcweir	sequence<com::sun::star::ucb::RememberAuthentication> getRememberAccountModes( [out] com::sun::star::ucb::RememberAuthentication Default );
151cdf0e10cSrcweir
152cdf0e10cSrcweir	//-------------------------------------------------------------------------
153cdf0e10cSrcweir	/** Set a new mode of how long to remember the account.
154cdf0e10cSrcweir
155cdf0e10cSrcweir		<p>This method should be called before
156cdf0e10cSrcweir        <member scope="com::sun::star::task">XInteractionContinuation::select</member>,
157cdf0e10cSrcweir        and should only	be called if
158cdf0e10cSrcweir        <member>XInteractionSupplyAuthentication::setAccount</member>
159cdf0e10cSrcweir        is also called.</p>
160cdf0e10cSrcweir
161cdf0e10cSrcweir		@param Remember  The mode to hand back, should be contained in the
162cdf0e10cSrcweir		sequence returned by
163cdf0e10cSrcweir        <member>XInteractionSupplyAuthentication::getRememberAccountModes</member>.
164cdf0e10cSrcweir	*/
165cdf0e10cSrcweir	void setRememberAccount( [in] com::sun::star::ucb::RememberAuthentication Remember );
166cdf0e10cSrcweir
167cdf0e10cSrcweir};
168cdf0e10cSrcweir
169cdf0e10cSrcweir//=============================================================================
170cdf0e10cSrcweir
171cdf0e10cSrcweir}; }; }; };
172cdf0e10cSrcweir
173cdf0e10cSrcweir#endif
174