LibreOffice Module ucbhelper (master) 1
|
This class implements a standard interaction continuation, namely the interface XInteractionSupplyAuthentication. More...
#include <interactionrequest.hxx>
Public Member Functions | |
InteractionSupplyAuthentication (InteractionRequest *pRequest, bool bCanSetRealm, bool bCanSetUserName, bool bCanSetPassword, bool bCanSetAccount, const css::uno::Sequence< css::ucb::RememberAuthentication > &rRememberPasswordModes, const css::ucb::RememberAuthentication eDefaultRememberPasswordMode, const css::uno::Sequence< css::ucb::RememberAuthentication > &rRememberAccountModes, const css::ucb::RememberAuthentication eDefaultRememberAccountMode, bool bCanUseSystemCredentials) | |
Constructor. More... | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual void SAL_CALL | select () override |
virtual sal_Bool SAL_CALL | canSetRealm () override |
virtual void SAL_CALL | setRealm (const OUString &Realm) override |
virtual sal_Bool SAL_CALL | canSetUserName () override |
virtual void SAL_CALL | setUserName (const OUString &UserName) override |
virtual sal_Bool SAL_CALL | canSetPassword () override |
virtual void SAL_CALL | setPassword (const OUString &Password) override |
virtual css::uno::Sequence< css::ucb::RememberAuthentication > SAL_CALL | getRememberPasswordModes (css::ucb::RememberAuthentication &Default) override |
virtual void SAL_CALL | setRememberPassword (css::ucb::RememberAuthentication Remember) override |
virtual sal_Bool SAL_CALL | canSetAccount () override |
virtual void SAL_CALL | setAccount (const OUString &Account) override |
virtual css::uno::Sequence< css::ucb::RememberAuthentication > SAL_CALL | getRememberAccountModes (css::ucb::RememberAuthentication &Default) override |
virtual void SAL_CALL | setRememberAccount (css::ucb::RememberAuthentication Remember) override |
virtual sal_Bool SAL_CALL | canUseSystemCredentials (sal_Bool &Default) override |
virtual void SAL_CALL | setUseSystemCredentials (sal_Bool UseSystemCredentials) override |
const OUString & | getRealm () const |
This method returns the realm that was supplied by the interaction handler. More... | |
const OUString & | getUserName () const |
This method returns the username that was supplied by the interaction handler. More... | |
const OUString & | getPassword () const |
This method returns the password that was supplied by the interaction handler. More... | |
const css::ucb::RememberAuthentication & | getRememberPasswordMode () const |
This method returns the authentication remember-mode for the password that was supplied by the interaction handler. More... | |
bool | getUseSystemCredentials () const |
Public Member Functions inherited from ucbhelper::InteractionContinuation | |
InteractionContinuation (InteractionRequest *pRequest) | |
Public Member Functions inherited from cppu::OWeakObject | |
OWeakObject () | |
OWeakObject (const OWeakObject &) | |
OWeakObject &SAL_CALL | operator= (const OWeakObject &) |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL | queryAdapter () SAL_OVERRIDE |
SAL_CALL | operator css::uno::Reference< css::uno::XInterface > () |
Private Attributes | |
css::uno::Sequence< css::ucb::RememberAuthentication > | m_aRememberPasswordModes |
css::uno::Sequence< css::ucb::RememberAuthentication > | m_aRememberAccountModes |
OUString | m_aRealm |
OUString | m_aUserName |
OUString | m_aPassword |
css::ucb::RememberAuthentication | m_eRememberPasswordMode |
css::ucb::RememberAuthentication | m_eDefaultRememberPasswordMode |
css::ucb::RememberAuthentication | m_eDefaultRememberAccountMode |
bool | m_bCanSetRealm: 1 |
bool | m_bCanSetUserName: 1 |
bool | m_bCanSetPassword: 1 |
bool | m_bCanSetAccount: 1 |
bool | m_bCanUseSystemCredentials: 1 |
bool | m_bUseSystemCredentials: 1 |
Additional Inherited Members | |
Protected Member Functions inherited from ucbhelper::InteractionContinuation | |
void | recordSelection () |
This method marks this continuation as "selected" at the request it belongs to. More... | |
virtual | ~InteractionContinuation () override |
Protected Member Functions inherited from cppu::OWeakObject | |
virtual | ~OWeakObject () COVERITY_NOEXCEPT_FALSE |
void | disposeWeakConnectionPoint () |
Protected Attributes inherited from cppu::OWeakObject | |
oslInterlockedCount | m_refCount |
This class implements a standard interaction continuation, namely the interface XInteractionSupplyAuthentication.
Instances of this class can be passed along with an authentication interaction request to enable the interaction handler to supply the missing authentication data.
Definition at line 291 of file interactionrequest.hxx.
|
inline |
Constructor.
Note: The remember-authentication stuff is interesting only for clients implementing own password storage functionality.
rxRequest | is the interaction request that owns this continuation. |
bCanSetRealm | indicates, whether the realm given with the authentication request is read-only. |
bCanSetUserName | indicates, whether the username given with the authentication request is read-only. |
bCanSetPassword | indicates, whether the password given with the authentication request is read-only. |
bCanSetAccount | indicates, whether the account given with the authentication request is read-only. |
rRememberPasswordModes | specifies the authentication-remember- modes for passwords supported by the requesting client. |
eDefaultRememberPasswordMode | specifies the default authentication-remember-mode for passwords preferred by the requesting client. |
rRememberAccountModes | specifies the authentication-remember- modes for accounts supported by the requesting client. |
eDefaultRememberAccountMode | specifies the default authentication-remember-mode for accounts preferred by the requesting client. |
bCanUseSystemCredentials | indicates whether issuer of the authentication request can obtain and use system credentials for authentication. |
Definition at line 453 of file interactionrequest.hxx.
|
inlineoverridevirtualnoexcept |
Reimplemented from cppu::OWeakObject.
Definition at line 361 of file interactionrequest.hxx.
|
overridevirtual |
Definition at line 484 of file interactionrequest.cxx.
References m_bCanSetAccount.
|
overridevirtual |
Definition at line 445 of file interactionrequest.cxx.
References m_bCanSetPassword.
|
overridevirtual |
Definition at line 405 of file interactionrequest.cxx.
References m_bCanSetRealm.
|
overridevirtual |
Definition at line 425 of file interactionrequest.cxx.
References m_bCanSetUserName.
|
overridevirtual |
Definition at line 521 of file interactionrequest.cxx.
References Default, and m_bCanUseSystemCredentials.
|
overridevirtual |
Definition at line 373 of file interactionrequest.cxx.
|
inline |
This method returns the password that was supplied by the interaction handler.
Definition at line 437 of file interactionrequest.hxx.
References m_aPassword.
|
inline |
This method returns the realm that was supplied by the interaction handler.
Definition at line 421 of file interactionrequest.hxx.
|
overridevirtual |
Definition at line 501 of file interactionrequest.cxx.
References Default, m_aRememberAccountModes, and m_eDefaultRememberAccountMode.
|
inline |
This method returns the authentication remember-mode for the password that was supplied by the interaction handler.
Definition at line 446 of file interactionrequest.hxx.
|
overridevirtual |
Definition at line 465 of file interactionrequest.cxx.
References Default, m_aRememberPasswordModes, and m_eDefaultRememberPasswordMode.
|
overridevirtual |
Definition at line 380 of file interactionrequest.cxx.
References cppu::OTypeCollection::getTypes().
|
inline |
This method returns the username that was supplied by the interaction handler.
Definition at line 429 of file interactionrequest.hxx.
|
inline |
Definition at line 448 of file interactionrequest.hxx.
|
overridevirtual |
Reimplemented from cppu::OWeakObject.
Definition at line 355 of file interactionrequest.cxx.
References uno::Any::hasValue(), cppu::OWeakObject::queryInterface(), and cppu::queryInterface().
|
inlineoverridevirtualnoexcept |
Reimplemented from cppu::OWeakObject.
Definition at line 363 of file interactionrequest.hxx.
|
overridevirtual |
Definition at line 394 of file interactionrequest.cxx.
References ucbhelper::InteractionContinuation::recordSelection().
|
overridevirtual |
Definition at line 492 of file interactionrequest.cxx.
References m_bCanSetAccount.
|
overridevirtual |
Definition at line 453 of file interactionrequest.cxx.
References m_aPassword, m_bCanSetPassword, and Password.
|
overridevirtual |
Definition at line 413 of file interactionrequest.cxx.
References m_aRealm, m_bCanSetPassword, and m_bCanSetRealm.
|
overridevirtual |
Definition at line 510 of file interactionrequest.cxx.
|
overridevirtual |
Definition at line 475 of file interactionrequest.cxx.
References m_eRememberPasswordMode.
|
overridevirtual |
Definition at line 433 of file interactionrequest.cxx.
References m_aUserName, and m_bCanSetUserName.
|
overridevirtual |
Definition at line 530 of file interactionrequest.cxx.
References m_bCanUseSystemCredentials, and m_bUseSystemCredentials.
|
private |
Definition at line 302 of file interactionrequest.hxx.
Referenced by setPassword().
|
private |
Definition at line 300 of file interactionrequest.hxx.
Referenced by setRealm().
|
private |
Definition at line 299 of file interactionrequest.hxx.
Referenced by getRememberAccountModes().
|
private |
Definition at line 297 of file interactionrequest.hxx.
Referenced by getRememberPasswordModes().
|
private |
Definition at line 301 of file interactionrequest.hxx.
Referenced by setUserName().
|
private |
Definition at line 309 of file interactionrequest.hxx.
Referenced by canSetAccount(), and setAccount().
|
private |
Definition at line 308 of file interactionrequest.hxx.
Referenced by canSetPassword(), setPassword(), and setRealm().
|
private |
Definition at line 306 of file interactionrequest.hxx.
Referenced by canSetRealm(), and setRealm().
|
private |
Definition at line 307 of file interactionrequest.hxx.
Referenced by canSetUserName(), and setUserName().
|
private |
Definition at line 310 of file interactionrequest.hxx.
Referenced by canUseSystemCredentials(), and setUseSystemCredentials().
|
private |
Definition at line 311 of file interactionrequest.hxx.
Referenced by setUseSystemCredentials().
|
private |
Definition at line 305 of file interactionrequest.hxx.
Referenced by getRememberAccountModes().
|
private |
Definition at line 304 of file interactionrequest.hxx.
Referenced by getRememberPasswordModes().
|
private |
Definition at line 303 of file interactionrequest.hxx.
Referenced by setRememberPassword().