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, OUString sUrl, 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

◆ AuthProvider()

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

Definition at line 34 of file auth_provider.hxx.

Member Function Documentation

◆ authenticationQuery()

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

◆ copyWebAuthCodeFallback()

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

Definition at line 166 of file auth_provider.cxx.

References code, getXEnv(), and OUSTR_TO_STDSTR.

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

◆ getRefreshToken()

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

Definition at line 69 of file auth_provider.cxx.

References getXEnv(), m_sBindingUrl, m_sUrl, OUSTR_TO_STDSTR, and STD_TO_OUSTR.

Referenced by cmis::Content::getSession().

◆ getXEnv()

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

Definition at line 161 of file auth_provider.cxx.

References sm_xEnv.

Referenced by copyWebAuthCodeFallback(), getRefreshToken(), and storeRefreshToken().

◆ setXEnv()

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

Definition at line 156 of file auth_provider.cxx.

References sm_xEnv.

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

◆ storeRefreshToken()

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

Definition at line 125 of file auth_provider.cxx.

References getXEnv(), m_sBindingUrl, and STD_TO_OUSTR.

Referenced by cmis::Content::getSession().

Member Data Documentation

◆ m_sBindingUrl

OUString cmis::AuthProvider::m_sBindingUrl
private

Definition at line 31 of file auth_provider.hxx.

Referenced by authenticationQuery(), getRefreshToken(), and storeRefreshToken().

◆ m_sUrl

OUString cmis::AuthProvider::m_sUrl
private

Definition at line 30 of file auth_provider.hxx.

Referenced by authenticationQuery(), and getRefreshToken().

◆ m_xEnv

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

Definition at line 28 of file auth_provider.hxx.

Referenced by authenticationQuery().

◆ sm_xEnv

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

Definition at line 29 of file auth_provider.hxx.

Referenced by getXEnv(), and setXEnv().


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