26 public const string Name =
"Neuro-Access";
99 public const string IotId =
"iotid";
109 public const string IotSc =
"iotsc";
134 public const string Xmpp =
"xmpp";
148 if (
string.IsNullOrWhiteSpace(Url))
151 int i = Url.IndexOf(
':');
155 Url = Url[..i].ToLowerInvariant();
179 return !
string.IsNullOrWhiteSpace(Url) &&
180 Url.StartsWith(
IotId +
":", StringComparison.InvariantCultureIgnoreCase);
190 return IotSc +
":" + id;
200 return IotId +
":" + id;
222 if (
string.IsNullOrEmpty(Scheme))
225 return Url[(Scheme.Length + 1)..];
237 public const string Jpeg =
"image/jpeg";
242 public const string Png =
"image/png";
299 public const string Area =
"AREA";
304 public const string City =
"CITY";
409 public const string Jid =
"JID";
414 public const string Phone =
"PHONE";
419 public const string EMail =
"EMAIL";
434 public const string Room =
"ROOM";
459 public const string Class =
"CLASS";
464 public const string Key =
"KEY";
484 public const string Model =
"MODEL";
489 public const string Name =
"NAME";
545 public static readonly TimeSpan
AutoSave = TimeSpan.FromSeconds(1);
550 public static readonly TimeSpan
Reconnect = TimeSpan.FromSeconds(10);
566 public static readonly TimeSpan
Database = TimeSpan.FromSeconds(10);
571 public static readonly TimeSpan
XmppConnect = TimeSpan.FromSeconds(10);
576 public static readonly TimeSpan
XmppInit = TimeSpan.FromSeconds(1);
581 public static readonly TimeSpan
UploadFile = TimeSpan.FromSeconds(30);
586 public static readonly TimeSpan
DownloadFile = TimeSpan.FromSeconds(10);
710 public const string Reason =
"pinEnteringFailure";
721 public const string AndroidApp =
"https://play.google.com/store/apps/details?id=com.tag.NeuroAccess";
726 public const string IPhoneApp =
"https://apps.apple.com/se/app/trust-anchor-access/id1580610247";
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.
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
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.
static readonly TimeSpan Reconnect
Reconnect interval
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 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.
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.
Runtime setting key names.
const string TransferIdCodeSent
Transfer ID code
const string PushNotificationConfigurationVersion
Push-notification configuration version.
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 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 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.