Show / Hide Table of Contents

Class Asset

Assets are used to group all the related types that make up what we think of as a Smartkey, such as Features, Keys, and Rights. Assets are signed by the owner unless they have an 'object_kind' of 'groupMaster'.

Inheritance
Object
BasePdu<Asset>
Asset
Implements
IEquatable<Asset>
Inherited Members
BasePdu<Asset>.ToJsonForMds()
BasePdu<Asset>.ToJsonForLocalStorage()
BasePdu<Asset>.Equals(Asset)
BasePdu<Asset>.Equals(Object)
BasePdu<Asset>.GetHashCode()
Object.Equals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: PKWARE.Smartcrypt.Protocol
Assembly: SmartcryptProtocol.dll
Syntax
public sealed class Asset : BasePdu<Asset>, IEquatable<Asset>

Constructors

Asset(Asset)

Declaration
public Asset([NotNull] Asset other)
Parameters
Type Name Description
Asset other

Fields

KindCommunity

Specific to Smartcrypt archive; owned by the server.

Declaration
public const string KindCommunity = "community"
Field Value
Type Description
String

KindContingency

For contingency access to other asset keys.

Declaration
public const string KindContingency = "Contingency"
Field Value
Type Description
String

KindGroupMaster

Specific to Active Directory groups. Each AD group gets it's own identity. The associated Asset Key has a unique format.

Declaration
public const string KindGroupMaster = "groupMaster"
Field Value
Type Description
String

KindPrefixSdk

Specific to all SDK applications; can be owned by the server or the user.

Declaration
public const string KindPrefixSdk = "sdk_"
Field Value
Type Description
String

KindPriv

The default asset for every account. A new priv Asset is created by the client every time a user's CA changes.

Declaration
public const string KindPriv = "priv"
Field Value
Type Description
String

KindSmartcrypt

Specific to Smartcrypt archive; owned by the user.

Declaration
public const string KindSmartcrypt = "smartcrypt"
Field Value
Type Description
String

KindTde

Unique to Smartcrypt TDE; owned by the server.

Declaration
public const string KindTde = "TDEKey"
Field Value
Type Description
String

record

Declaration
[NotNull]
public readonly Asset.Record record
Field Value
Type Description
Asset.Record

Properties

created_at

Declaration
[CanBeNull]
public string created_at { get; set; }
Property Value
Type Description
String

homeServer

Declaration
[CanBeNull]
public string homeServer { get; set; }
Property Value
Type Description
String

id

Declaration
public long id { get; set; }
Property Value
Type Description
Int64

keyDestruction

TODO Inline the docs from https://confluence.pkware.com/display/SPE/Smartcrypt+Key+Life+Cycle.

Declaration
public int keyDestruction { get; set; }
Property Value
Type Description
Int32

keyRetirement

TODO Inline the docs from https://confluence.pkware.com/display/SPE/Smartcrypt+Key+Life+Cycle.

Declaration
public int keyRetirement { get; set; }
Property Value
Type Description
Int32

keyRotation

TODO Inline the docs from https://confluence.pkware.com/display/SPE/Smartcrypt+Key+Life+Cycle.

Declaration
public int keyRotation { get; set; }
Property Value
Type Description
Int32

ownerid

Declaration
public long ownerid { get; set; }
Property Value
Type Description
Int64

signature

Declaration
[CanBeNull]
public string signature { get; set; }
Property Value
Type Description
String

updated_at

Declaration
[CanBeNull]
public string updated_at { get; set; }
Property Value
Type Description
String

Methods

ToJson(Boolean)

Declaration
protected override string ToJson(bool sending)
Parameters
Type Name Description
Boolean sending
Returns
Type Description
String
Overrides
PKWARE.Smartcrypt.Protocol.BasePdu<PKWARE.Smartcrypt.Protocol.Asset>.ToJson(System.Boolean)

Implements

System.IEquatable<T>
Back to top Copyright © 2018 PKWARE, Inc.