Search Results

Go to the documentation of this file.
1 // Copyright (c) 2017 Digital Barriers
4 
19 #pragma once
20 
21 #include "EdgeVisSDK.h"
22 #include "Pimpl.h"
23 #include <string>
24 
25 namespace EdgeVisDecoderSDK
26 {
27  class CredentialsImpl;
28 
29  class Credentials : public EdgeVisSDKPimpl<CredentialsImpl>
30  {
31 
32  public:
33  Credentials();
34 
47  DB_EDGEVIS_SDK Credentials( const std::wstring& username, const std::wstring& password, const std::wstring &new_password = L"");
48 
49  std::wstring Username() const;
50 
59  DB_EDGEVIS_SDK void SetUsername( const std::wstring& username );
60 
61  std::wstring SSOOpenIdAuthCode() const;
62 
68  DB_EDGEVIS_SDK void SetSSOOpenIdAuthCode(const std::wstring& ssoOpenIdAuthCode);
69 
70  std::wstring Password() const;
71 
77  DB_EDGEVIS_SDK void SetPassword( const std::wstring& password );
78 
79  std::wstring HashedPassword() const;
80 
81  DB_EDGEVIS_SDK void SetHashedPassword(const std::wstring& password);
82 
83  std::wstring NewPassword() const;
84 
85  std::wstring EncryptedNewPassword() const;
86 
93  DB_EDGEVIS_SDK void SetNewPassword( const std::wstring& new_password );
94 
105  DB_EDGEVIS_SDK bool SetMFAPasscode(const std::wstring& otp);
106 
107  std::wstring MFAPasscode() const;
108 
119  DB_EDGEVIS_SDK void SetMFAEmergencyPasscode(const std::wstring& emergency_passcode);
120 
121  std::wstring MFAEmergencyPasscode() const;
122 
134  DB_EDGEVIS_SDK void SetDevicePassword(const std::wstring& password);
135 
136  std::wstring DevicePassword() const;
137  };
138 }
DB_EDGEVIS_SDK void SetPassword(const std::wstring &password)
Sets the password for logging in to the server.
DB_EDGEVIS_SDK bool SetMFAPasscode(const std::wstring &otp)
Sets the one time two factor authentication password for this login.
Holds the server credentials for the user logging in.
Definition: Credentials.h:29
DB_EDGEVIS_SDK void SetSSOOpenIdAuthCode(const std::wstring &ssoOpenIdAuthCode)
Sets the SSO OpenId auth code for logging in to the server.
DB_EDGEVIS_SDK void SetDevicePassword(const std::wstring &password)
Sets the device password for this login.
DB_EDGEVIS_SDK void SetUsername(const std::wstring &username)
Sets the username for logging in to the server.
DB_EDGEVIS_SDK void SetMFAEmergencyPasscode(const std::wstring &emergency_passcode)
Sets the two factor authentication emergency passcode for this login.
The EdgeVis Decoder SDK namespace.
DB_EDGEVIS_SDK void SetNewPassword(const std::wstring &new_password)
Sets the new password to set when logging in to the server when a password reset is required...