11 public const string IotId =
"""iotid:(?:([^@\/<>'\"\s]+)@)([^@\/<>'\"\s]+)""";
13 public const string NeuroFeatures =
"""nfeat:(?:([^@\/<>'\"\s]+)@)([^@\/<>'\"\s]+)""";
15 public const string Smartcontract =
"""iotsc:(?:([^@\/<>'\"\s]+)@)([^@\/<>'\"\s]+)([?][^\s=&]+=[^\s&]*(&[^\s=&]+=[^\s&]*)*)?""";
43 public const string Name =
"Neuro-Access";
114 public const string NeuroAccessBrandingV1 =
"urn:neuroaccess:branding:1.0";
115 public const string NeuroAccessBrandingV2 =
"urn:neuroaccess:branding:2.0";
116 public const string NeuroAccessBrandingV2Url =
"https://paiwise.tagroot.io/Schema/NeuroAccessBrandingV2.xsd";
117 public const string KYCProcess =
"urn:neuroaccess:kyc:1.0";
118 public const string NeuroAccessKycProcessUrl =
"https://paiwise.tagroot.io/Schema/NeuroAccessKycProcess.xsd";
121 public const string BrandingDescriptorV1File =
"NeuroAccessBrandingV1.xsd";
122 public const string BrandingDescriptorV2File =
"NeuroAccessBrandingV2.xsd";
123 public const string KycProcessFile =
"KYCProcess.xsd";
124 public const string NeuroAccessKycProcessFile =
"NeuroAccessKycProcess.xsd";
127 public static readonly
string[] KycNamespaceKeys =
new string[]
129 NeuroAccessKycProcessUrl,
133 public static readonly
string[] BrandingV2NamespaceKeys =
new string[]
135 NeuroAccessBrandingV2Url,
136 NeuroAccessBrandingV2,
153 public const string IotId =
"iotid";
163 public const string IotSc =
"iotsc";
188 public const string Xmpp =
"xmpp";
202 if (
string.IsNullOrWhiteSpace(Url))
205 int i = Url.IndexOf(
':');
209 Url = Url[..i].ToLowerInvariant();
233 return !
string.IsNullOrWhiteSpace(Url) &&
234 Url.StartsWith(
IotId +
":", StringComparison.InvariantCultureIgnoreCase);
244 return IotSc +
":" + id;
254 return IotId +
":" + id;
276 if (
string.IsNullOrEmpty(Scheme))
279 return Url[(Scheme.Length + 1)..];
291 public const string Jpeg =
"image/jpeg";
296 public const string Png =
"image/png";
336 public const string Provider =
"IDENTITY_PROVIDER";
341 public const string State =
"IDENTITY_STATE";
346 public const string Created =
"IDENTITY_CREATED";
351 public const string Updated =
"IDENTITY_UPDATED";
356 public const string From =
"IDENTITY_FROM";
361 public const string To =
"IDENTITY_TO";
409 public const string Area =
"AREA";
414 public const string City =
"CITY";
519 public const string Jid =
"JID";
524 public const string Phone =
"PHONE";
529 public const string EMail =
"EMAIL";
544 public const string Room =
"ROOM";
569 public const string Class =
"CLASS";
574 public const string Key =
"KEY";
594 public const string Model =
"MODEL";
599 public const string Name =
"NAME";
655 public static readonly TimeSpan
Default = TimeSpan.FromMilliseconds(50);
666 public static readonly TimeSpan
AutoSave = TimeSpan.FromSeconds(1);
671 public static readonly TimeSpan
Reconnect = TimeSpan.FromSeconds(10);
676 public static readonly TimeSpan
Qr = TimeSpan.FromSeconds(5);
697 public static readonly TimeSpan
Database = TimeSpan.FromSeconds(30);
702 public static readonly TimeSpan
XmppConnect = TimeSpan.FromSeconds(10);
707 public static readonly TimeSpan
XmppInit = TimeSpan.FromSeconds(1);
712 public static readonly TimeSpan
UploadFile = TimeSpan.FromSeconds(30);
717 public static readonly TimeSpan
DownloadFile = TimeSpan.FromSeconds(10);
728 public static readonly TimeSpan DefaultImageCache = TimeSpan.FromDays(7);
852 public const string Reason =
"pinEnteringFailure";
863 public const string AndroidApp =
"https://play.google.com/store/apps/details?id=com.tag.NeuroAccess";
868 public const string IPhoneApp =
"https://apps.apple.com/se/app/trust-anchor-access/id1580610247";
1088 public const string BannerLargeDark =
"banner_large_dark";
1089 public const string BannerSmallLight =
"banner_small_light";
1090 public const string BannerSmallDark =
"banner_small_dark";
1091 public const string LogoLight =
"logo_light";
1092 public const string LogoDark =
"logo_dark";
const int MinAge
Minimum age for applying for an ID
const int MaxAge
Maximum age for applying for an ID
Application-related constants.
const string Name
Name of application
const int TokenBatchSize
Number of tokens to load in a single batch.
const int MessageBatchSize
Number of messages to load in a single batch.
const int DeviceBatchSize
Number of devices to load in a single batch.
const int AccountEventBatchSize
Number of account events to load in a single batch.
Image identifiers for branding.
const string BannerLargeLight
The default branding image.
Machine-readable names in contracts.
const string PaymentInstructionsNamespace
Namespace for payment instructions
const string BuyEDaler
Local name for contracts for buying eDaler.
const string SellEDaler
Local name for contracts for selling eDaler.
static readonly string[] TokenCreationTemplates
Array of contract templates for creating tokens.
const string TokenConsignmentTemplate
Contract template for consigning the token to an auctioneer with the purpose of selling it.
const string TransferTokenTemplate
Contract template for transferring a token from a seller to a buyer
const string CreateDemoTokenTemplate
Contract template for creating a demo token
const string CreateDemoTokens5Template
Contract template for creating five demo tokens
Custom XMPP Protocol Properties.
const string BirthDate
Full birthday
const string To
“To” / expiry date
const string From
“From” date
const string State
Current state (Approved, Rejected, …)
const string Created
When it was created
const string Updated
When it was last updated
const string Provider
Issuer / Provider
const string Neuro_Id
Identity ID
static readonly TimeSpan Default
Default delay interval if waiting for something
const string OnboardingDomain
Neuro-Access onboarding domain.
const string IdDomain
Neuro-Access domain.
const string ResolutionGroupName
ResolutionGroupName used for resolving Effects.
const string PasswordMaskTogglerEffect
PasswordMaskTogglerEffect.
const string Qr_Person
QR-code with a person icon.
Contains intent action constants used for inter-component communication within the app.
const string OpenUrl
Action used to open a URL, typically triggered by deep linking.
const string Navigate
Action triggered when the app needs to navigate to a specific page.
const string NfcTagDiscovered
Action triggered when an NFC tag is discovered.
static readonly TimeSpan Reconnect
Reconnect interval
static readonly TimeSpan Qr
Qr interval
static readonly TimeSpan ForceRefresh
Refresh interval for potentially missed messages
static readonly TimeSpan AutoSave
Auto Save interval
const string Default
The default language code.
const string Png
The PNG MIME type.
const string Jpeg
The JPEG MIME type.
Absolute paths to important pages.
const string OnboardingPage
Path to onboarding page.
const string MainPage
Path to main page.
const string RegistrationPage
Path to registration page.
const int FirstMaxPasswordAttempts
Maximum password enetring attempts, first interval
const int PossibleInactivityInMinutes
Possible time of inactivity
const string CurrentPasswordAttemptCounter
Key for password attempt counter
const string RemoteEndpoint
Endpoint for LogAuditor
const string LogAuditorObjectID
Log Object ID
const int SecondBlockInHours
Second Block in hours after 3 attempts
const int ThirdBlockInHours
Third Block in hours after 3 attempts
const int FirstBlockInHours
First Block in hours after FirstMaxPasswordAttempts attempts
const string Protocol
Protocol for LogAuditor
const int ThirdMaxPasswordAttempts
Maximum password enetring attempts, third interval
const int SecondMaxPasswordAttempts
Maximum password enetring attempts, second interval
const string Reason
Reason for LogAuditor
const string Provisioning
Provisioning channel
const string Petitions
Petitions channel
const string Identities
Identities channel
const string Messages
Messages channel
const string Tokens
Tokens channel
const string Contracts
Contracts channel
const int DefaultImageHeight
The default height to use when generating QR Code images.
const int DefaultImageWidth
The default width to use when generating QR Code images.
const int DefaultResolutionScale
The default scale factor to apply to the QR Code image resolution.
References to external resources
const string IPhoneApp
Resource where iPhone App can be downloaded.
const string AndroidApp
Resource where Android App can be downloaded.
XML Schemes (namespaces used also as schema registration keys) + packaged file names.
const int MaxPasswordIdenticalSymbols
Maximum number of identical symbols in a password.
const int MinPasswordLength
Minimum length for password
const int MinPasswordSymbolsFromDifferentClasses
Minimum number of symbols from at least two character classes (digits, letters, other) in a password.
const int MaxPasswordSequencedSymbols
Maximum number of sequenced symbols in a password.
const double MediumSecurityScoreThreshold
A password score value equal to or higher than this is considered medium security.
const double HighSecurityPasswordScoreThreshold
A password score value equal to or higher than this is considered high security.
const int MaxScreenRecordingTimeSeconds
Maximum number of seconds screen recording is allowed.
const double MaxSecurityPasswordScoreThreshold
A password score value equal to or higher than this is considered to be of the highest security.
const int MaxPasswordRepeatingRun
Maximum allowed consecutive repeating identical symbols before blocking
Runtime setting key names.
const string TransferIdCodeSent
Transfer ID code
const string PushNotificationConfigurationVersion
Push-notification configuration version.
const string PushNotificationRulesHash
Hash of the push-notification rules used when provisioning.
const string PushNotificationAsked
Push-notification asked.
const string PushNotificationReportDate
When push-notification token was reported.
const string PushNotificationToken
Push-notification token.
static readonly TimeSpan GenericRequest
Generic request timeout
static readonly TimeSpan XmppInit
XMPP Init timeout
static readonly TimeSpan Database
Database timeout
static readonly TimeSpan IdentityAllowedWatch
Allowed time to watch an Identity
static readonly TimeSpan XmppConnect
XMPP Connect timeout
static readonly TimeSpan DownloadFile
Download file timeout
static readonly TimeSpan UploadFile
Upload file timeout
const string TagSign
TAG Signature (Quick-Login) URI Scheme (tagsign)
const string IotSc
The IoT Smart Contract URI Scheme (iotsc)
static bool StartsWithIdScheme(string Url)
Checks if the specified code starts with the IoT ID scheme.
const string Onboarding
Onboarding URI Scheme (obinfo)
static string CreateSmartContractUri(string id)
Generates a IoT Scan Uri form the specified id.
const string NeuroFeature
eDaler URI Scheme (edaler)
static string CreateTokenUri(string id)
Generates a Neuro-Feature ID Uri form the specified id.
static ? string RemoveScheme(string Url)
Removes the URI Schema from an URL.
static string CreateIdUri(string id)
Generates a IoT ID Uri form the specified id.
const string Aes256
AES-256-encrypted data.
const string IotDisco
The IoT Discovery URI Scheme (iotdisco)
const string Xmpp
XMPP URI Scheme (xmpp)
const string IotId
The IoT ID URI Scheme (iotid)
static ? string GetScheme(string Url)
Gets the predefined scheme from an IoT Code
XMPP Protocol Properties.
const string MeterNumber
MeterNumber
const string PersonalNumber
Personal number
const string OrgAddress2
Organization Address line 2
const string DeviceId
Device ID
const string Country
Country
const string OrgArea
Organization Area
const string Partition
Partition
const string SerialNumber
Serial Number
const string Region
Region
const string OrgRegion
Organization Region
const string Nationality
Nationality
const string ZipCode
Zip Code
const string FullName
Full name
const string BirthYear
Birth Year
const string OrgCity
Organization City
const string SourceId
Source ID
const string Latitude
Latitude
const string OrgRole
Organization Role
const string StreetName
Street Name
const string Phone
Phone number
const string EMail
e-Mail address
const string Registry
Registry
const string ProductInformation
Product Information
const string NodeId
Node ID
const string OrgZipCode
Organization Zip Code
const string MiddleNames
Middle names
const string BirthDay
Birth Day
const string OrgCountry
Organization Country
const string OrgDepartment
Organization Department
const string Address2
Address line 2
const string Altitude
Altitude
const string Domain
Domain name.
const string Jid
Jabber ID
const string StreetNumber
Street Number
const string OrgAddress
Organization Address line 1
const string Address
Address line 1
const string Building
Building
const string LastNames
Last names
const string OrgNumber
Organization number
const string BirthMonth
Birth Month
const string MeterLocation
Meter Location
const string Manufacturer
Manufacturer
const string Version
Version
const string FirstName
First name
const string Longitude
Longitude
const string Apartment
Apartment
const string Gender
Gender
const string OrgName
Organization name
A set of never changing property constants and helpful values.
const int MaxRenderedImageDimensionInPixels
A maximum number of pixels to render for images, downscaling them if necessary.
const string NotAvailableValue
A generic "no value available" string.
const string IotId
Regex pattern for validating Neuro-Feature tokens.