Show / Hide Table of Contents

Class ConfigSecurityManager

Provides security manager implementation that authenticates and authorizes users from configuration

Inheritance
System.Object
DisposableObject
ApplicationComponent
Service
Service<System.Object>
ServiceWithInstrumentationBase<System.Object>
ConfigSecurityManager
Implements
IService
INamed
ILocalizedTimeProvider
IInstrumentable
IExternallyParameterized
ISecurityManagerImplementation
ISecurityManager
IApplicationComponent
System.IDisposable
IConfigurable
Inherited Members
ServiceWithInstrumentationBase<Object>.ExternalParameters
ServiceWithInstrumentationBase<Object>.ExternalParametersForGroups(String[])
ServiceWithInstrumentationBase<Object>.ExternalGetParameter(String, Object, String[])
ServiceWithInstrumentationBase<Object>.ExternalSetParameter(String, Object, String[])
Service<Object>.ComponentDirector
Service.CONFIG_NAME_ATTR
Service.Destructor()
Service.ApplicationDontAutoStartService
Service.Status
Service.Running
Service.Name
Service.TimeLocation
Service.LocalizedTime
Service.Configure(IConfigSectionNode)
Service.Start()
Service.SignalStop()
Service.CheckForCompleteStop()
Service.WaitForCompleteStop()
Service.AcceptManagerVisit(Object, DateTime)
Service.UniversalTimeToLocalizedTime(DateTime)
Service.LocalizedTimeToUniversalTime(DateTime)
Service.AbortStart()
Service.DoCheckForCompleteStop()
Service.CheckServiceInactive()
Service.CheckServiceActive()
Service.CheckServiceActiveOrStarting()
Service.DoAcceptManagerVisit(Object, DateTime)
Service.____ObtainPrivateServiceStatusLockObject()
ApplicationComponent.AllComponents
ApplicationComponent.GetAppComponentBySID(UInt64)
ApplicationComponent.GetAppComponentByCommonName(String)
ApplicationComponent.ComponentSID
ApplicationComponent.ComponentStartTime
DisposableObject.DisposeAndNull<T>(T)
DisposableObject.DisposeStarted
DisposableObject.Disposed
DisposableObject.EnsureObjectNotDisposed()
DisposableObject.Dispose()
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()
Namespace: NFX.Security
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
ApplicationComponent.ComponentCommonName

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
Type Description
IConfigSectionNode

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
Type Description
MessageType

LogMask

Declaration
[Config(Default = SecurityLogMask.Custom)]
[ExternalParameter(new string[]{"log", "security"})]
public SecurityLogMask LogMask { get; set; }
Property Value
Type Description
SecurityLogMask

PasswordManager

Declaration
public IPasswordManager PasswordManager { get; }
Property Value
Type Description
IPasswordManager

Methods

Authenticate(AuthenticationToken)

Declaration
public User Authenticate(AuthenticationToken token)
Parameters
Type Name Description
AuthenticationToken token
Returns
Type Description
User

Authenticate(Credentials)

Declaration
public User Authenticate(Credentials credentials)
Parameters
Type Name Description
Credentials credentials
Returns
Type Description
User

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
Type Name Description
User user
Permission permission
Returns
Type Description
AccessLevel

DoConfigure(IConfigSectionNode)

Declaration
protected override void DoConfigure(IConfigSectionNode node)
Parameters
Type Name Description
IConfigSectionNode node
Overrides
Service.DoConfigure(IConfigSectionNode)

DoSignalStop()

Declaration
protected override void DoSignalStop()
Overrides
Service.DoSignalStop()

DoStart()

Declaration
protected override void DoStart()
Overrides
Service.DoStart()

DoWaitForCompleteStop()

Declaration
protected override void DoWaitForCompleteStop()
Overrides
Service.DoWaitForCompleteStop()

GetUserLogArchiveDimensions(IIdentityDescriptor)

Declaration
public IConfigSectionNode GetUserLogArchiveDimensions(IIdentityDescriptor identity)
Parameters
Type Name Description
IIdentityDescriptor identity
Returns
Type Description
IConfigSectionNode

LogSecurityMessage(SecurityLogAction, Message, IIdentityDescriptor)

Declaration
public void LogSecurityMessage(SecurityLogAction action, Message msg, IIdentityDescriptor identity = null)
Parameters
Type Name Description
SecurityLogAction action
Message msg
IIdentityDescriptor identity

Implements

IService
INamed
ILocalizedTimeProvider
IInstrumentable
IExternallyParameterized
ISecurityManagerImplementation
ISecurityManager
IApplicationComponent
System.IDisposable
IConfigurable

Extension Methods

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX