LibreOffice Module ucb (master)  1
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
cmis::AuthProvider Class Reference

#include <auth_provider.hxx>

Inheritance diagram for cmis::AuthProvider:
[legend]
Collaboration diagram for cmis::AuthProvider:
[legend]

Public Member Functions

 AuthProvider (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv, const OUString &sUrl, const OUString &sBindingUrl)
 
bool authenticationQuery (std::string &username, std::string &password) override
 
std::string getRefreshToken (std::string &username)
 
bool storeRefreshToken (const std::string &username, const std::string &password, const std::string &refreshToken)
 

Static Public Member Functions

static char * copyWebAuthCodeFallback (const char *url, const char *, const char *)
 
static void setXEnv (const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
 
static css::uno::Reference< css::ucb::XCommandEnvironment > getXEnv ()
 

Private Attributes

const css::uno::Reference< css::ucb::XCommandEnvironment > & m_xEnv
 
OUString m_sUrl
 
OUString m_sBindingUrl
 

Static Private Attributes

static css::uno::WeakReference< css::ucb::XCommandEnvironment > sm_xEnv
 

Detailed Description

Definition at line 26 of file auth_provider.hxx.

Constructor & Destructor Documentation

cmis::AuthProvider::AuthProvider ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv,
const OUString &  sUrl,
const OUString &  sBindingUrl 
)
inline

Definition at line 34 of file auth_provider.hxx.

Member Function Documentation

bool cmis::AuthProvider::authenticationQuery ( std::string &  username,
std::string &  password 
)
override

Definition at line 28 of file auth_provider.cxx.

References OUSTR_TO_STDSTR, and STD_TO_OUSTR.

char * cmis::AuthProvider::copyWebAuthCodeFallback ( const char *  url,
const char *  ,
const char *   
)
static

Definition at line 167 of file auth_provider.cxx.

References code, and OUSTR_TO_STDSTR.

Referenced by cmis::RepoContent::getRepositories().

string cmis::AuthProvider::getRefreshToken ( std::string &  username)

Definition at line 70 of file auth_provider.cxx.

References OUSTR_TO_STDSTR, and STD_TO_OUSTR.

css::uno::Reference< css::ucb::XCommandEnvironment > cmis::AuthProvider::getXEnv ( )
static

Definition at line 162 of file auth_provider.cxx.

void cmis::AuthProvider::setXEnv ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  xEnv)
static

Definition at line 157 of file auth_provider.cxx.

Referenced by cmis::RepoContent::getRepositories().

bool cmis::AuthProvider::storeRefreshToken ( const std::string &  username,
const std::string &  password,
const std::string &  refreshToken 
)

Definition at line 126 of file auth_provider.cxx.

References STD_TO_OUSTR.

Member Data Documentation

OUString cmis::AuthProvider::m_sBindingUrl
private

Definition at line 31 of file auth_provider.hxx.

OUString cmis::AuthProvider::m_sUrl
private

Definition at line 30 of file auth_provider.hxx.

const css::uno::Reference< css::ucb::XCommandEnvironment>& cmis::AuthProvider::m_xEnv
private

Definition at line 28 of file auth_provider.hxx.

css::uno::WeakReference< css::ucb::XCommandEnvironment > cmis::AuthProvider::sm_xEnv
staticprivate

Definition at line 29 of file auth_provider.hxx.


The documentation for this class was generated from the following files: