Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / ucb / XInteractionSupplyAuthentication.idl
blob921f90502059f81a86c4bfc70bef48f0187f98ff
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: XInteractionSupplyAuthentication.idl,v $
10 * $Revision: 1.9 $
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_ucb_XInteractionSupplyAuthentication_idl__
31 #define __com_sun_star_ucb_XInteractionSupplyAuthentication_idl__
33 #ifndef __com_sun_star_task_XInteractionContinuation_idl__
34 #include <com/sun/star/task/XInteractionContinuation.idl>
35 #endif
37 #ifndef __com_sun_star_ucb_RememberAuthentication_idl__
38 #include <com/sun/star/ucb/RememberAuthentication.idl>
39 #endif
42 //=============================================================================
44 module com { module sun { module star { module ucb {
46 //=============================================================================
47 /** An interaction continuation handing back some authentication data.
49 <p> This continuation is typically used in conjunction with
50 <type>AuthenticationRequest</type>. </p>
52 published interface XInteractionSupplyAuthentication: com::sun::star::task::XInteractionContinuation
54 //-------------------------------------------------------------------------
55 /** Specifies if a new 'realm' value can be handed back.
57 boolean canSetRealm();
59 //-------------------------------------------------------------------------
60 /** Set a new 'realm' value to hand back.
62 <p>This method should be called before
63 <member scope="com::sun::star::task">XInteractionContinuation::select</member>,
64 and should only be called if
65 <member>XInteractionSupplyAuthentication::canSetRealm</member> returned
66 <true/>.</p>
68 void setRealm( [in] string Realm );
70 //-------------------------------------------------------------------------
71 /** Specifies if a 'user name' value can be handed back.
73 boolean canSetUserName();
75 //-------------------------------------------------------------------------
76 /** Set a new 'user name' value to hand back.
78 <p>This method should be called before
79 <member scope="com::sun::star::task">XInteractionContinuation::select</member>,
80 and should only be called if
81 <member>XInteractionSupplyAuthentication::canSetUserName</member>
82 returned <true/>.</p>
84 void setUserName( [in] string UserName );
86 //-------------------------------------------------------------------------
87 /** Specifies if a 'password' value can be handed back.
89 boolean canSetPassword();
91 //-------------------------------------------------------------------------
92 /** Set a new 'password' value to hand back.
94 <p>This method should be called before
95 <member scope="com::sun::star::task">XInteractionContinuation::select</member>,
96 and should only be called if
97 <member>XInteractionSupplyAuthentication::canSetPassword</member>
98 returned <true/>.</p>
100 void setPassword( [in] string Password );
102 //-------------------------------------------------------------------------
103 /** Specifies the available modes of how long to remember the password.
105 @param Default
106 Returns the default mode (to be initially displayed to the user).
108 @returns
109 A sequence of available modes to hand back. Each individual mode
110 should appear at most once in the sequence. If the sequence is empty,
111 a new mode cannot be handed back.
113 sequence<com::sun::star::ucb::RememberAuthentication> getRememberPasswordModes( [out] com::sun::star::ucb::RememberAuthentication Default );
115 //-------------------------------------------------------------------------
116 /** Set a new mode of how long to remember the password.
118 <p>This method should be called before
119 <member scope="com::sun::star::task">XInteractionContinuation::select</member>,
120 and should only be called if
121 <member>XInteractionSupplyAuthentication::setPassword</member>
122 is also called.</p>
124 @param Remember
125 The mode to hand back, should be contained in the sequence returned by
126 <member>XInteractionSupplyAuthentication::getRememberPasswordModes</member>.
128 void setRememberPassword( [in] com::sun::star::ucb::RememberAuthentication Remember );
130 //-------------------------------------------------------------------------
131 /** Specifies if an 'account' value can be handed back.
133 boolean canSetAccount();
135 //-------------------------------------------------------------------------
136 /** Set a new 'account' value to hand back.
138 <p>This method should be called before
139 <member scope="com::sun::star::task">XInteractionContinuation::select</member>,
140 and should only be called if
141 <member>XInteractionSupplyAuthentication::canSetAccount</member>
142 returned <true/>.</p>
145 void setAccount( [in] string Account );
147 //-------------------------------------------------------------------------
148 /** Specifies the available modes of how long to remember the account.
150 @param Default Returns the default mode (to be initially displayed to
151 the user).
153 @returns A sequence of available modes to hand back. Each individual
154 mode should appear at most once in the sequence. If the sequence is
155 empty, a new mode cannot be handed back.
157 sequence<com::sun::star::ucb::RememberAuthentication> getRememberAccountModes( [out] com::sun::star::ucb::RememberAuthentication Default );
159 //-------------------------------------------------------------------------
160 /** Set a new mode of how long to remember the account.
162 <p>This method should be called before
163 <member scope="com::sun::star::task">XInteractionContinuation::select</member>,
164 and should only be called if
165 <member>XInteractionSupplyAuthentication::setAccount</member>
166 is also called.</p>
168 @param Remember The mode to hand back, should be contained in the
169 sequence returned by
170 <member>XInteractionSupplyAuthentication::getRememberAccountModes</member>.
172 void setRememberAccount( [in] com::sun::star::ucb::RememberAuthentication Remember );
176 //=============================================================================
178 }; }; }; };
180 #endif