LibreOffice Module ucbhelper (master)  1
simpleauthenticationrequest.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_UCBHELPER_SIMPLEAUTHENTICATIONREQUEST_HXX
21 #define INCLUDED_UCBHELPER_SIMPLEAUTHENTICATIONREQUEST_HXX
22 
23 #include <rtl/ref.hxx>
26 
27 namespace com::sun::star::ucb {
28  class URLAuthenticationRequest;
29 }
30 
31 namespace ucbhelper {
32 
53 {
55  ucbhelper::InteractionSupplyAuthentication > m_xAuthSupplier;
56 
57 private:
58  void initialize( const css::ucb::URLAuthenticationRequest & rRequest,
59  bool bCanSetRealm,
60  bool bCanSetUserName,
61  bool bCanSetPassword,
62  bool bCanSetAccount,
63  bool bAllowUseSystemCredentials,
64  bool bAllowSessionStoring );
65 
66 public:
71  {
74  ENTITY_MODIFY
75  };
76 
90  SimpleAuthenticationRequest( const OUString & rURL,
91  const OUString & rServerName,
92  const OUString & rRealm,
93  const OUString & rUserName,
94  const OUString & rPassword,
95  bool bAllowUseSystemCredentials,
96  bool bAllowSessionStoring = true );
97 
98 
115  SimpleAuthenticationRequest( const OUString & rURL,
116  const OUString & rServerName,
117  EntityType eRealmType,
118  const OUString & rRealm,
119  EntityType eUserNameType,
120  const OUString & rUserName,
121  EntityType ePasswordType,
122  const OUString & rPassword );
123 
132  getAuthenticationSupplier() const { return m_xAuthSupplier; }
133 };
134 
135 } // namespace ucbhelper
136 
137 #endif /* ! INCLUDED_UCBHELPER_SIMPLEAUTHENTICATIONREQUEST_HXX */
138 
139 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
EntityType
Specification whether some entity (realm, username, password, account) is either not applicable at al...
This class implements the interface XInteractionRequest.
rtl::Reference< ucbhelper::InteractionSupplyAuthentication > m_xAuthSupplier
#define UCBHELPER_DLLPUBLIC
const rtl::Reference< ucbhelper::InteractionSupplyAuthentication > & getAuthenticationSupplier() const
This method returns the supplier for the missing authentication data, that, for instance can be used ...
This class implements a simple authentication interaction request.