52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
#include "pch.h"
|
|
#include "Credential.h"
|
|
#include "Credential.g.cpp"
|
|
#include "App.xaml.h"
|
|
|
|
namespace winrt {
|
|
using namespace Windows::Storage::Streams;
|
|
}
|
|
|
|
namespace winrt::PasskeyManager::implementation
|
|
{
|
|
Credential::Credential(winrt::hstring const& userName, hstring const& rpName, const winrt::IBuffer& credentialId) :
|
|
m_userName(userName), m_rpName(rpName), m_credentialId(credentialId), m_options(CredentialOptionFlags::MetadataValid)
|
|
{
|
|
}
|
|
|
|
Credential::Credential(hstring const& userName,
|
|
hstring const& rpName,
|
|
const winrt::IBuffer& credentialId,
|
|
CredentialOptionFlags options) : m_userName(userName), m_rpName(rpName), m_credentialId(credentialId), m_options(options)
|
|
{
|
|
}
|
|
|
|
hstring Credential::UserName()
|
|
{
|
|
return m_userName;
|
|
}
|
|
|
|
hstring Credential::RpName()
|
|
{
|
|
return m_rpName;
|
|
}
|
|
|
|
winrt::IBuffer Credential::CredentialId()
|
|
{
|
|
return m_credentialId;
|
|
}
|
|
|
|
CredentialOptionFlags Credential::CredentialOptions()
|
|
{
|
|
return m_options;
|
|
}
|
|
|
|
void Credential::CredentialOptions(CredentialOptionFlags value)
|
|
{
|
|
if (m_options != value)
|
|
{
|
|
m_options = value;
|
|
}
|
|
}
|
|
}
|