RMS SDK for C++  0.2.1
A client library for using Microsoft RMS from Linux.
Public Member Functions | List of all members
rmscore::modernapi::AuthenticationCallbackImpl Class Reference

Implementation class for authentication callback. More...

#include <AuthenticationCallbackImpl.h>

Inheritance diagram for rmscore::modernapi::AuthenticationCallbackImpl:
rmscore::modernapi::IAuthenticationCallbackImpl

Public Member Functions

 AuthenticationCallbackImpl (IAuthenticationCallback &callback, const std::string &userId)
 This class wraps an IAuthenticationCallback implementation to provide OAuth coordinates. More...
 
virtual bool NeedsChallenge () const override
 False if OAuth coordinates (authority, resource, scope) are already known, True if these should be retrieved from challenge header in 401 Unauthorized response from API.
 
virtual std::string GetAccessToken (const AuthenticationChallenge &challenge) override
 Prepares AuthenticationParameters from AuthenticationChallenge response, and passes these parameters to IAuthenticationCallback. More...
 

Detailed Description

Implementation class for authentication callback.

Constructor & Destructor Documentation

rmscore::modernapi::AuthenticationCallbackImpl::AuthenticationCallbackImpl ( IAuthenticationCallback callback,
const std::string &  userId 
)
inline

This class wraps an IAuthenticationCallback implementation to provide OAuth coordinates.

Parameters
callbackAuthentication callback implementation.
userIdUser ID of the authentication requestor, to be passed to the IAuthenticationCallback.

Member Function Documentation

virtual std::string rmscore::modernapi::AuthenticationCallbackImpl::GetAccessToken ( const AuthenticationChallenge challenge)
inlineoverridevirtual

Prepares AuthenticationParameters from AuthenticationChallenge response, and passes these parameters to IAuthenticationCallback.

Parameters
challengePackage of coordinates received from API 401 Unauthorized response.

Implements rmscore::modernapi::IAuthenticationCallbackImpl.


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