Метод | Описание | |
---|---|---|
GetCurrentCache ( int providerID ) : |
Loads the UserDataCache for the current local user.
|
|
Save ( ) : void |
Initiates inter-process synchronized save of user data cache.
|
|
SaveUserData ( string loginID, GSF.Security.UserData userData ) : void |
Serializes the userData for the given loginID into the UserDataCache. This will add an entry into the user data cache for loginID if it doesn't exist; otherwise existing entry will be updated. Updates are automatically queued up for serialization so user does not need to call Save. |
|
TryGetUserData ( string loginID, GSF.Security.UserData &userData ) : bool |
Attempts to retrieve UserData for given loginID.
|
|
UserDataCache ( int providerID = LdapSecurityProvider.ProviderID ) : System |
Creates a new instance of the UserDataCache.
|
|
UserDataCache ( int providerID, int maximumConcurrentLocks ) : System |
Creates a new instance of the UserDataCache with the specified number of maximumConcurrentLocks.
|
|
this ( string loginID ) : GSF.Security.UserData |
Gets or sets UserData for given loginID.
|
Метод | Описание | |
---|---|---|
HashLoginID ( string loginID ) : string |
Calculates the hash of the loginID used as the key for the user data cache. For added security, a hash of the loginID is used as the key for UserData in the user data cache instead of the actual loginID. This method allows the consumer to properly calculate this hash when directly using the user data cache. |
|
LoadFileData ( |
Handles deserialization of file from disk; virtual method allows customization (e.g., pre-load decryption and/or data merge). Consumers overriding this method should not directly call InterprocessCache.FileData property to avoid potential dead-locks. |
|
SaveFileData ( |
Handles serialization of file to disk; virtual method allows customization (e.g., pre-save encryption and/or data merge). Consumers overriding this method should not directly call InterprocessCache.FileData property to avoid potential dead-locks. |
Метод | Описание | |
---|---|---|
DeserializeCache ( byte data ) : UserData>.Dictionary |
||
SerializeCache ( UserData>.Dictionary |
||
WaitForDataReady ( ) : void |
public static GetCurrentCache ( int providerID ) : |
||
providerID | int | Unique security provider ID used to distinguish cached user data that may be different based on provider. |
Результат |
protected HashLoginID ( string loginID ) : string | ||
loginID | string | Login ID to hash. |
Результат | string |
protected LoadFileData ( |
||
fileStream | ||
Результат | byte[] |
protected SaveFileData ( |
||
fileStream | ||
fileData | byte | File data to be serialized. |
Результат | void |
public SaveUserData ( string loginID, GSF.Security.UserData userData ) : void | ||
loginID | string | Login ID of associated |
userData | GSF.Security.UserData | Reference to |
Результат | void |
public TryGetUserData ( string loginID, GSF.Security.UserData &userData ) : bool | ||
loginID | string | Login ID of associated |
userData | GSF.Security.UserData | Reference to |
Результат | bool |
public UserDataCache ( int providerID = LdapSecurityProvider.ProviderID ) : System | ||
providerID | int | Unique provider ID used to distinguish cached user data that may be different based on provider. |
Результат | System |
public UserDataCache ( int providerID, int maximumConcurrentLocks ) : System | ||
providerID | int | Unique provider ID used to distinguish cached user data that may be different based on provider. |
maximumConcurrentLocks | int | Maximum concurrent reader locks to allow. |
Результат | System |
public this ( string loginID ) : GSF.Security.UserData | ||
loginID | string | Login ID of associated |
Результат | GSF.Security.UserData |