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