Class ConfigSecurityManager
Provides security manager implementation that authenticates and authorizes users from configuration
Inheritance
System.Object
ConfigSecurityManager
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NFX.dll
Syntax
public class ConfigSecurityManager : ServiceWithInstrumentationBase<object>, IService, INamed, ILocalizedTimeProvider, IInstrumentable, IExternallyParameterized, ISecurityManagerImplementation, ISecurityManager, IApplicationComponent, IDisposable, IConfigurable
Constructors
ConfigSecurityManager()
Constructs security manager that authenticates users listed in application configuration
Declaration
public ConfigSecurityManager()
ConfigSecurityManager(Object)
Constructs security manager that authenticates users listed in the supplied configuration section
Declaration
public ConfigSecurityManager(object director)
Parameters
| Type |
Name |
Description |
| System.Object |
director |
|
Fields
CONFIG_DESCRIPTION_ATTR
Declaration
public const string CONFIG_DESCRIPTION_ATTR = "description"
Field Value
| Type |
Description |
| System.String |
|
CONFIG_ID_ATTR
Declaration
public const string CONFIG_ID_ATTR = "id"
Field Value
| Type |
Description |
| System.String |
|
CONFIG_PASSWORD_ATTR
Declaration
public const string CONFIG_PASSWORD_ATTR = "password"
Field Value
| Type |
Description |
| System.String |
|
CONFIG_PASSWORD_MANAGER_SECTION
Declaration
public const string CONFIG_PASSWORD_MANAGER_SECTION = "password-manager"
Field Value
| Type |
Description |
| System.String |
|
CONFIG_PERMISSION_SECTION
Declaration
public const string CONFIG_PERMISSION_SECTION = "permission"
Field Value
| Type |
Description |
| System.String |
|
CONFIG_RIGHTS_SECTION
Declaration
public const string CONFIG_RIGHTS_SECTION = "rights"
Field Value
| Type |
Description |
| System.String |
|
CONFIG_STATUS_ATTR
Declaration
public const string CONFIG_STATUS_ATTR = "status"
Field Value
| Type |
Description |
| System.String |
|
CONFIG_USER_SECTION
Declaration
public const string CONFIG_USER_SECTION = "user"
Field Value
| Type |
Description |
| System.String |
|
CONFIG_USERS_SECTION
Declaration
public const string CONFIG_USERS_SECTION = "users"
Field Value
| Type |
Description |
| System.String |
|
Properties
ComponentCommonName
Declaration
public override string ComponentCommonName { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Config
Returns config node that this instance is configured from.
If null is returned then manager performs authentication from application configuration
Declaration
public IConfigSectionNode Config { get; }
Property Value
InstrumentationEnabled
Declaration
[Config(Default = false)]
[ExternalParameter(new string[]{"instrumentation", "pay"})]
public override bool InstrumentationEnabled { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
NFX.ServiceModel.ServiceWithInstrumentationBase<System.Object>.InstrumentationEnabled
LogLevel
Declaration
[ExternalParameter(new string[]{"log", "security"})]
public MessageType LogLevel { get; set; }
Property Value
LogMask
Declaration
[Config(Default = SecurityLogMask.Custom)]
[ExternalParameter(new string[]{"log", "security"})]
public SecurityLogMask LogMask { get; set; }
Property Value
PasswordManager
Declaration
public IPasswordManager PasswordManager { get; }
Property Value
Methods
Authenticate(AuthenticationToken)
Declaration
public User Authenticate(AuthenticationToken token)
Parameters
Returns
Authenticate(Credentials)
Declaration
public User Authenticate(Credentials credentials)
Parameters
Returns
Authenticate(User)
Declaration
public void Authenticate(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Authorize(User, Permission)
Declaration
public AccessLevel Authorize(User user, Permission permission)
Parameters
Returns
Declaration
protected override void DoConfigure(IConfigSectionNode node)
Parameters
Overrides
DoSignalStop()
Declaration
protected override void DoSignalStop()
Overrides
DoStart()
Declaration
protected override void DoStart()
Overrides
DoWaitForCompleteStop()
Declaration
protected override void DoWaitForCompleteStop()
Overrides
GetUserLogArchiveDimensions(IIdentityDescriptor)
Declaration
public IConfigSectionNode GetUserLogArchiveDimensions(IIdentityDescriptor identity)
Parameters
Returns
LogSecurityMessage(SecurityLogAction, Message, IIdentityDescriptor)
Declaration
public void LogSecurityMessage(SecurityLogAction action, Message msg, IIdentityDescriptor identity = null)
Parameters
Implements
System.IDisposable
Extension Methods