Search Results for

    Show / Hide Table of Contents

    Class HttpBasicAuthUtil

    Summary description for HttpBasicAuthUtil.

    Inheritance
    System.Object
    HttpBasicAuthUtil
    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 static class HttpBasicAuthUtil

    Properties

    BasicAuthEncoding

    The encoding used for encrypting the basic auth data. RFC is kind of blurry in this matter. Normally RFC states iso-8859-1 but this does not cover all needs. Utf-8 is used by firefox and chrome so we stick with that

    Declaration
    public static Encoding BasicAuthEncoding { get; set; }
    Property Value
    Type Description
    System.Text.Encoding

    Methods

    CreateBasicAuthHeaderValue(String, String)

    Creates a Basic authentication header value

    Declaration
    public static string CreateBasicAuthHeaderValue(string username, string password)
    Parameters
    Type Name Description
    System.String username
    System.String password
    Returns
    Type Description
    System.String

    ParseBasicAuthHeader(String)

    Parses the auth header value for a basic auth request

    Declaration
    public static string[] ParseBasicAuthHeader(string authHeader)
    Parameters
    Type Name Description
    System.String authHeader

    The header to parse

    Returns
    Type Description
    System.String[]

    An array containing the username and password or null if the supplied header value is not a valid

    In This Article
    Back to top (c) Meriworks 2002-2022