Show / Hide Table of Contents

Class AccountInfo

Represents the public and private information of a Smartcrypt identity.

Inheritance
Object
AccountInfo
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: PKWARE.Smartcrypt.MetaClient
Assembly: MetaClient.dll
Syntax
public sealed class AccountInfo
Remarks

This type is particularly useful when creating a new identity as it creates all the public and private information necessary to populate the Pid, Sid, and User. It can also be used to load an existing identity and extract the encrypted information it contains.

Fields

Credentials

Declaration
[NotNull]
public readonly Credentials Credentials
Field Value
Type Description
Credentials

PublicKey

Base64 encoded with V2 prefix. Will not be null if this object represents a newly created account rather than account information pertaining to an already existing account.

Declaration
[CanBeNull]
public readonly string PublicKey
Field Value
Type Description
String

Properties

SHash

The result of performing an HMAC hash using the key derived from PBKDF2(user's password) on the sInfo, the secret data used to couple the User and SID entities.

Declaration
[NotNull]
public string SHash { get; }
Property Value
Type Description
String

SidLocator

Secret Identity Data locator. Used to link a User entity with a SID entity.

Declaration
[NotNull]
public string SidLocator { get; }
Property Value
Type Description
String

Methods

FromCredentials(ICryptoProvider, Credentials, String)

Creates a new set of account info by combining the existing credentials with the new password. This is primarily useful for password change scenarios.

Declaration
[NotNull]
public static AccountInfo FromCredentials([NotNull] ICryptoProvider cryptoProvider, [NotNull] Credentials credentials, [NotNull] string password)
Parameters
Type Name Description
ICryptoProvider cryptoProvider

The provider to use for random byte generation.

Credentials credentials

The credentials of the existing account. No changes will be made to this instance.

String password

A new password with which to generate the info.

Returns
Type Description
AccountInfo
See Also
PKWARE.Smartcrypt.MetaClient.PasswordChanger
Back to top Copyright © 2018 PKWARE, Inc.