Class Certificate
Represents a serialized X.509 certificate stored in the database for reporting purposes.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class Certificate : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<Certificate>
  Constructors
Certificate()
Initializes an empty instance.
Declaration
public Certificate()
  Certificate(X509Certificate2)
Initializes a new instance from the provided certificate.
Declaration
public Certificate(X509Certificate2 certificate)
  Parameters
| Type | Name | Description | 
|---|---|---|
| X509Certificate2 | certificate | X.509 certificate to be initialized from.  | 
      
Properties
Data
Gets or sets the serialized certificate.
Declaration
public byte[] Data { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Byte[] | 
Description
Gets or sets certificate description.
Declaration
public string Description { get; set; }
  Property Value
| Type | Description | 
|---|---|
| String | 
Expiration
Gets or sets the certificate expiration date and time.
Declaration
public DateTime Expiration { get; set; }
  Property Value
| Type | Description | 
|---|---|
| DateTime | 
FriendlyName
Gets or sets display name of the certificate.
Declaration
public string FriendlyName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| String | 
IsMajorObject
Gets the flag indicating that current object is a major entity.
Declaration
public override bool IsMajorObject { get; }
  Property Value
| Type | Description | 
|---|---|
| Boolean | 
Overrides
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
  Property Value
| Type | Description | 
|---|---|
| EntityType | 
Overrides
Methods
Equals(Certificate)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(Certificate other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Certificate | other | The object to compare with the current object.  | 
      
Returns
| Type | Description | 
|---|---|
| Boolean | True, if objects are equal. False, if objects are not equal.  | 
      
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Object | obj | The object to compare with the current object.  | 
      
Returns
| Type | Description | 
|---|---|
| Boolean | True, if objects are equal. False, if objects are not equal.  | 
      
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
  Returns
| Type | Description | 
|---|---|
| Int32 | Hash code of the current instance.  | 
      
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| String | A string that represents the current object.  | 
      
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
  Returns
| Type | Description | 
|---|---|
| Boolean | True if state is valid; otherwise, false.  |