Digital Barriers
Digital Barriers EdgeVis Decoder SDK
Loading...
Searching...
No Matches
Credentials.h
Go to the documentation of this file.
1
2// Copyright (c) 2017 Digital Barriers
4
18
19#pragma once
20
21#include "EdgeVisSDK.h"
22#include "Pimpl.h"
23#include <string>
24
25namespace EdgeVisDecoderSDK
26{
27 class CredentialsImpl;
28
29 class Credentials : public EdgeVisSDKPimpl<CredentialsImpl>
30 {
31
32 public:
33 Credentials();
34
49 DB_EDGEVIS_SDK Credentials( const std::wstring& username, const std::wstring& password, const std::wstring &new_password = L"");
50
51 std::wstring Username() const;
52
61 DB_EDGEVIS_SDK void SetUsername( const std::wstring& username );
62
63 std::wstring SSOOpenIdAuthCode() const;
64
70 DB_EDGEVIS_SDK void SetSSOOpenIdAuthCode(const std::wstring& ssoOpenIdAuthCode);
71
72 std::wstring Password() const;
73
79 DB_EDGEVIS_SDK void SetPassword( const std::wstring& password );
80
81 std::wstring HashedPassword() const;
82
83 DB_EDGEVIS_SDK void SetHashedPassword(const std::wstring& password);
84
85 std::wstring NewPassword() const;
86
87 std::wstring EncryptedNewPassword() const;
88
97 DB_EDGEVIS_SDK void SetNewPassword( const std::wstring& new_password );
98
109 DB_EDGEVIS_SDK bool SetMFAPasscode(const std::wstring& otp);
110
111 std::wstring MFAPasscode() const;
112
123 DB_EDGEVIS_SDK void SetMFAEmergencyPasscode(const std::wstring& emergency_passcode);
124
125 std::wstring MFAEmergencyPasscode() const;
126
138 DB_EDGEVIS_SDK void SetDevicePassword(const std::wstring& password);
139
140 std::wstring DevicePassword() const;
141 };
142}
DB_EDGEVIS_SDK bool SetMFAPasscode(const std::wstring &otp)
Sets the one time two factor authentication password for this login.
DB_EDGEVIS_SDK Credentials(const std::wstring &username, const std::wstring &password, const std::wstring &new_password=L"")
Constructor for the Credentials object.
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.
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.
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 SetPassword(const std::wstring &password)
Sets the password for logging in to the server.
The EdgeVis Decoder SDK namespace.