Class ProductAccessKey
Represents the access key associated with a consumer of a product.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class ProductAccessKey : IExtensibleDataObject, IValidator
Constructors
ProductAccessKey()
Declaration
public ProductAccessKey()
Fields
PropertyName
Name of the message property containing the associated ProductAccessKey.
Declaration
public const string PropertyName = "Nevatech.Vsb.Repository.Entities.ProductAccessKey"
Field Value
Type | Description |
---|---|
String |
Properties
AccessKeyHash
Gets or sets the SHA-256 hash value of the access key.
Declaration
public string AccessKeyHash { get; set; }
Property Value
Type | Description |
---|---|
String |
ApplicationId
Gets or sets the application identifier that access key is associated with.
Declaration
public int ApplicationId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ErrorMessage
Gets the summary of validation errors populated by the call to Validate() method.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
String |
Expiration
Gets or sets the access key expiration date and time (in UTC).
Declaration
public DateTime Expiration { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
ExtensionData
Gets or sets ExtensionDataObject that enables serialization round-trips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
Type | Description |
---|---|
ExtensionDataObject |
IsDeleted
Gets or sets the flag indicating that application or subscription has been removed.
Declaration
public bool IsDeleted { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsExpired
Gets flag indicating that this key is expired.
Declaration
public bool IsExpired { get; }
Property Value
Type | Description |
---|---|
Boolean |
ProductId
Gets or sets the product identifier that access key is associated with.
Declaration
public int ProductId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
Boolean | True if state is valid; otherwise, false. |