libnick 2024.12.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
credentialcheckstatus.h
Go to the documentation of this file.
1
23#ifndef CREDENTIALCHECKSTATUS_H
24#define CREDENTIALCHECKSTATUS_H
25
26namespace Nickvision::Keyring
27{
32 {
33 Valid = 1,
34 EmptyName = 2,
36 InvalidUri = 8
37 };
38
40 {
41 return static_cast<CredentialCheckStatus>(~static_cast<int>(a));
42 }
43
45 {
46 return static_cast<CredentialCheckStatus>(static_cast<int>(a) | static_cast<int>(b));
47 }
48
50 {
51 return static_cast<CredentialCheckStatus>(static_cast<int>(a) & static_cast<int>(b));
52 }
53
55 {
56 return static_cast<CredentialCheckStatus>(static_cast<int>(a) ^ static_cast<int>(b));
57 }
58
60 {
61 return reinterpret_cast<CredentialCheckStatus&>(reinterpret_cast<int&>(a) |= static_cast<int>(b));
62 }
63
65 {
66 return reinterpret_cast<CredentialCheckStatus&>(reinterpret_cast<int&>(a) &= static_cast<int>(b));
67 }
68
70 {
71 return reinterpret_cast<CredentialCheckStatus&>(reinterpret_cast<int&>(a) ^= static_cast<int>(b));
72 }
73}
74
75#endif //CREDENTIALCHECKSTATUS_H
Definition credential.h:30
CredentialCheckStatus & operator|=(CredentialCheckStatus &a, CredentialCheckStatus b)
Definition credentialcheckstatus.h:59
CredentialCheckStatus & operator^=(CredentialCheckStatus &a, CredentialCheckStatus b)
Definition credentialcheckstatus.h:69
constexpr CredentialCheckStatus operator|(CredentialCheckStatus a, CredentialCheckStatus b)
Definition credentialcheckstatus.h:44
constexpr CredentialCheckStatus operator~(CredentialCheckStatus a)
Definition credentialcheckstatus.h:39
constexpr CredentialCheckStatus operator^(CredentialCheckStatus a, CredentialCheckStatus b)
Definition credentialcheckstatus.h:54
CredentialCheckStatus & operator&=(CredentialCheckStatus &a, CredentialCheckStatus b)
Definition credentialcheckstatus.h:64
constexpr CredentialCheckStatus operator&(CredentialCheckStatus a, CredentialCheckStatus b)
Definition credentialcheckstatus.h:49
CredentialCheckStatus
Flags to describe the status of a validated credential.
Definition credentialcheckstatus.h:32
@ EmptyName
The credential has an empty name.
@ InvalidUri
The credential has an invalid URI.
@ EmptyUsernamePassword
The credential has an empty username or password.