Click or drag to resize

SecurityAttribute Class

Define the security information about the configuration property.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    MFiles.VAF.ConfigurationSecurityAttribute

Namespace:  MFiles.VAF.Configuration
Assembly:  MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 21.8.10524.1
Syntax
[SerializableAttribute]
public class SecurityAttribute : Attribute, 
	ISchemaMemberControlAttribute

The SecurityAttribute type exposes the following members.

Constructors
  NameDescription
Public methodSecurityAttribute
Constructor.
Top
Properties
  NameDescription
Public propertyChangeBy
Defines the minimum user level required for changing the value.
Public propertyIsPassword
Is the property a password field, which is returned as empty.
Public propertyViewBy
Defines the minimum user level required for viewing the value.
Top
Methods
  NameDescription
Public methodCanGenerateMember
Determines whether the schema generator should add a member definition to the schema it is generating.
Public methodStatic memberResolveUserLevel
Resolves the current user's user level based on the given operation context.
Top
Remarks
When password fields are used in the UI, those values will be redacted via a password mask "****" in a configuration object that has been parsed using json passed from the UI. The exception is when the password has been input into the UI and is first being saved. Therefore the password should only be used from configuration objects that have been loaded from NamedValueStorage (the non-redacted version). Note that the OnConfigurationChange handler will be passed a configuration object that contains the unredacted value.
See Also