RMS SDK for C++  0.2.1
A client library for using Microsoft RMS from Linux.
AcquireTokenNonInteractiveHandler.h
1 /*
2  * ======================================================================
3  * Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
4  * Licensed under the MIT License.
5  * See LICENSE.md in the project root for license information.
6  * ======================================================================
7 */
8 
9 #ifndef ACQUIRETOKENNONINTERACTIVEHANDLER_H
10 #define ACQUIRETOKENNONINTERACTIVEHANDLER_H
11 
12 #include "AcquireTokenHandlerBase.h"
13 #include "UserCredential.h"
14 #include "UserAssertion.h"
15 #include "UserIdentifier.h"
16 #include "Exceptions.h"
17 #include "Constants.h"
18 #include "AuthorizationResult.h"
19 
20 namespace rmsauth {
21 
23 {
24  static const String& Tag() {static const String tag="AcquireTokenNonInteractiveHandler"; return tag;}
25 
26  UserCredentialPtr userCredential_ = nullptr;
27  UserAssertionPtr userAssertion_ = nullptr;
28 
29 public:
30  AcquireTokenNonInteractiveHandler(AuthenticatorPtr authenticator, TokenCachePtr tokenCache, const String& resource, const String& clientId, UserCredentialPtr userCredential, bool callSync);
31  AcquireTokenNonInteractiveHandler(AuthenticatorPtr authenticator, TokenCachePtr tokenCache, const String& resource, const String& clientId, UserAssertionPtr userAssertion, bool callSync);
32 
33 protected:
34  void addAditionalRequestParameters(RequestParameters& requestParameters) override;
35  void preRunAsync() override;
36  void preTokenRequest() override;
37 };
38 
39 } // namespace rmsauth {
40 
41 #endif // ACQUIRETOKENNONINTERACTIVEHANDLER_H
Definition: RequestParameters.h:18
Definition: AcquireTokenNonInteractiveHandler.h:22
Definition: AcquireTokenHandlerBase.h:29
Definition: AcquireTokenForClientHandler.h:14