Class ProductAccessKey
Represents the access key associated with a consumer of a product.
Inheritance
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 |
---|---|
System.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 |
---|---|
System.String |
ApplicationId
Gets or sets the application identifier that access key is associated with.
Declaration
public int ApplicationId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ApplicationName
Gets or sets the application name that access key is associated with. The name is truncated up to the first 64 characters.
Declaration
public string ApplicationName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ErrorMessage
Gets the summary of validation errors populated by the call to Validate() method.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
Expiration
Gets or sets the access key expiration date and time (in UTC).
Declaration
public DateTime Expiration { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
ExtensionData
Gets or sets System.Runtime.Serialization.ExtensionDataObject that enables serialization round-trips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
Type | Description |
---|---|
System.Runtime.Serialization.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 |
---|---|
System.Boolean |
IsExpired
Gets flag indicating that this key is expired.
Declaration
public bool IsExpired { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ProductId
Gets or sets the product identifier that access key is associated with.
Declaration
public int ProductId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |