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
[DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
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
[DataMember]
public string AccessKeyHash { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ApplicationId
Gets or sets the application identifier that access key is associated with.
Declaration
[DataMember]
public int ApplicationId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
ApplicationName
Gets or sets the application name that access key is associated with. The name is truncated up to the first 64 characters.
Declaration
[DataMember]
public string ApplicationName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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
[DataMember]
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
[DataMember(EmitDefaultValue = false)]
public bool IsDeleted { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsExpired
Gets flag indicating that this key is expired.
Declaration
public bool IsExpired { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ProductId
Gets or sets the product identifier that access key is associated with.
Declaration
public int ProductId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
| Type | Description |
|---|---|
| bool | True if state is valid; otherwise, false. |