Search Results for

    Show / Hide Table of Contents

    Class DefaultClientSecurityManager

    A client security manager that supports claims and role providers

    Inheritance
    System.Object
    DefaultClientSecurityManager
    Implements
    IClientSecurityManager
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: ImageVault.Common.Security
    Assembly: ImageVault.Common.dll
    Syntax
    public class DefaultClientSecurityManager : IClientSecurityManager
    Remarks

    It supports the following claims

    • Role ("http://schemas.microsoft.com/ws/2008/06/identity/claims/role";)
    • Group ("http://schemas.microsoft.com/ws/2008/06/identity/claims/groups";)
    • GroupSid (will be translated) ("http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsid";)
    • Object identifier ("http://schemas.microsoft.com/identity/claims/objectidentifier";)

    You can also specify a prefix to be added to each identity by setting the following app setting.

    ImageVault.Common.Security.DefaultClientSecurityManager.IdentityPrefix

    Constructors

    DefaultClientSecurityManager()

    Declaration
    public DefaultClientSecurityManager()

    Methods

    GetRoleIdentities(IPrincipal)

    Gets the role identities for the supplied principal

    Declaration
    public IEnumerable<string> GetRoleIdentities(IPrincipal principal)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal principal
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.String>

    GetUserIdentity(IPrincipal)

    Gets the user identity for the principal

    Declaration
    public string GetUserIdentity(IPrincipal principal)
    Parameters
    Type Name Description
    System.Security.Principal.IPrincipal principal
    Returns
    Type Description
    System.String

    Implements

    IClientSecurityManager

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022