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'.
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
Specific to Smartcrypt archive; owned by the server.
Declaration
public const string KindCommunity = "community"
Field Value
KindContingency
For contingency access to other asset keys.
Declaration
public const string KindContingency = "Contingency"
Field Value
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
KindPrefixSdk
Specific to all SDK applications; can be owned by the server or the user.
Declaration
public const string KindPrefixSdk = "sdk_"
Field Value
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
KindSmartcrypt
Specific to Smartcrypt archive; owned by the user.
Declaration
public const string KindSmartcrypt = "smartcrypt"
Field Value
KindTde
Unique to Smartcrypt TDE; owned by the server.
Declaration
public const string KindTde = "TDEKey"
Field Value
record
Declaration
[NotNull]
public readonly Asset.Record record
Field Value
Properties
created_at
Declaration
[CanBeNull]
public string created_at { get; set; }
Property Value
homeServer
Declaration
[CanBeNull]
public string homeServer { get; set; }
Property Value
id
Declaration
public long id { get; set; }
Property Value
keyDestruction
Declaration
public int keyDestruction { get; set; }
Property Value
keyRetirement
Declaration
public int keyRetirement { get; set; }
Property Value
keyRotation
Declaration
public int keyRotation { get; set; }
Property Value
ownerid
Declaration
public long ownerid { get; set; }
Property Value
signature
Declaration
[CanBeNull]
public string signature { get; set; }
Property Value
updated_at
Declaration
[CanBeNull]
public string updated_at { get; set; }
Property Value
Methods
ToJson(Boolean)
Declaration
protected override string ToJson(bool sending)
Parameters
Type |
Name |
Description |
Boolean |
sending |
|
Returns
Overrides
PKWARE.Smartcrypt.Protocol.BasePdu<PKWARE.Smartcrypt.Protocol.Asset>.ToJson(System.Boolean)
Implements