Search Results for

    Show / Hide Table of Contents

    Class AuthTokenUtil

    Utility class for Encoding and decoding Authtokens

    Inheritance
    System.Object
    AuthTokenUtil
    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
    [Obsolete("Not used anymore. Will be removed in next major release")]
    public static class AuthTokenUtil

    Methods

    Decrypt(String, X509Certificate2)

    Decrypts a text

    Declaration
    public static string Decrypt(string chiper, X509Certificate2 certificate)
    Parameters
    Type Name Description
    System.String chiper
    System.Security.Cryptography.X509Certificates.X509Certificate2 certificate
    Returns
    Type Description
    System.String

    Decrypt(String, String, String)

    Decrypts the supplied message

    Declaration
    public static AuthToken Decrypt(string message, string secret, string salt)
    Parameters
    Type Name Description
    System.String message
    System.String secret
    System.String salt
    Returns
    Type Description
    AuthToken

    Encrypt(AuthToken, String, String)

    Encrypts the supplied token using the secret and salt

    Declaration
    public static string Encrypt(AuthToken token, string secret, string salt)
    Parameters
    Type Name Description
    AuthToken token
    System.String secret
    System.String salt
    Returns
    Type Description
    System.String

    Encrypt(String, X509Certificate2)

    Declaration
    public static string Encrypt(string key, X509Certificate2 certificate)
    Parameters
    Type Name Description
    System.String key
    System.Security.Cryptography.X509Certificates.X509Certificate2 certificate
    Returns
    Type Description
    System.String

    HttpGet(Uri, Dictionary<String, String>)

    Performs an Http Get request for the supplied uri and querystring parameters and returns the response body

    Declaration
    public static string HttpGet(Uri uri, Dictionary<string, string> parameters)
    Parameters
    Type Name Description
    System.Uri uri
    System.Collections.Generic.Dictionary<System.String, System.String> parameters
    Returns
    Type Description
    System.String
    Exceptions
    Type Condition
    System.ApplicationException

    If cannot create request for the supplied parameters.

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