Свойство | Type | Description | |
---|---|---|---|
sebPasswordDialogForm | SebPasswordDialogForm |
Méthode | Description | |
---|---|---|
DecryptSEBSettings ( byte sebData, bool forEditing, string &sebFilePassword, bool &passwordIsHash, |
Decrypt and deserialize SEB settings When forEditing = true, then the decrypting password the user entered and/or certificate reference found in the .seb file is returned
|
|
EncryptDataUsingIdentity ( byte data, |
Encrypt preferences using a certificate
|
|
EncryptDataUsingPassword ( byte data, string password, bool passwordIsHash, SEBSettings configPurpose ) : byte[] |
Encrypt preferences using a password
|
|
EncryptSEBSettingsWithCredentials ( string settingsPassword, bool passwordIsHash, |
Show SEB Password Dialog Form. Read SEB settings from UserDefaults and encrypt them using provided security credentials
|
|
GetPrefixDataFromData ( byte &data, int prefixLength ) : byte[] |
Helper method for stripping (and returning) a prefix byte array of prefixLength from a data byte array which is returned without the stripped prefix
|
|
GetPrefixStringFromData ( byte &data ) : string |
Helper method for returning a prefix string (of PREFIX_LENGTH, currently 4 chars) from a data byte array which is returned without the stripped prefix
|
|
StoreDecryptedSEBSettings ( byte sebData ) : bool |
Decrypt, parse and use new SEB settings
|
Méthode | Description | |
---|---|---|
DecryptDataWithPasswordForConfiguringClient ( byte sebData, bool forEditing, string &sebFilePassword, bool &passwordIsHash ) : Dictionary |
Helper method which decrypts the byte array using an empty password, or the administrator password currently set in SEB or asks for the password used for encrypting this SEB file for configuring the client
|
|
DecryptDataWithPublicKeyHashPrefix ( byte sebData, bool forEditing, |
Helper method which fetches the public key hash from a byte array, retrieves the according cryptographic identity from the certificate store and returns the decrypted bytes
|
|
GetPreferencesDictFromConfigData ( byte sebData, bool forEditing ) : Dictionary |
Helper method: Get preferences dictionary from decrypted data. In editing mode, users have to enter the right SEB administrator password before they can access the settings contents and returns the decrypted bytes
|
|
askForPasswordAndCompareToHashedPassword ( string sebFileHashedAdminPassword, bool forEditing ) : bool |
Ask user to enter password and compare it to the passed (hashed) password string Returns true if correct password was entered
|
public static DecryptSEBSettings ( byte sebData, bool forEditing, string &sebFilePassword, bool &passwordIsHash, |
||
sebData | byte | |
forEditing | bool | |
sebFilePassword | string | |
passwordIsHash | bool | |
sebFileCertificateRef | ||
Résultat | Dictionary |
public static EncryptDataUsingIdentity ( byte data, |
||
data | byte | |
certificateRef | ||
Résultat | byte[] |
public static EncryptDataUsingPassword ( byte data, string password, bool passwordIsHash, SEBSettings configPurpose ) : byte[] | ||
data | byte | |
password | string | |
passwordIsHash | bool | |
configPurpose | SEBSettings | |
Résultat | byte[] |
public static EncryptSEBSettingsWithCredentials ( string settingsPassword, bool passwordIsHash, |
||
settingsPassword | string | |
passwordIsHash | bool | |
certificateRef | ||
configPurpose | SEBSettings | |
forEditing | bool | |
Résultat | byte[] |
public static GetPrefixDataFromData ( byte &data, int prefixLength ) : byte[] | ||
data | byte | |
prefixLength | int | |
Résultat | byte[] |
public static GetPrefixStringFromData ( byte &data ) : string | ||
data | byte | |
Résultat | string |
public static StoreDecryptedSEBSettings ( byte sebData ) : bool | ||
sebData | byte | |
Résultat | bool |