Class X509CertificateIdentityDefinition
Represents X.509 certificate client or service identity.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services.Identities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class X509CertificateIdentityDefinition : X509CertificateIdentityDefinitionBase, IValidator, IExtensibleDataObject, IX509CertificateIdentity
  Constructors
X509CertificateIdentityDefinition()
Initializes an empty instance.
Declaration
public X509CertificateIdentityDefinition()
  X509CertificateIdentityDefinition(Identity)
Initializes new instance from provided Identity object.
Declaration
public X509CertificateIdentityDefinition(Identity identity)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Identity | identity | Identity object used to populate new instance.  | 
      
X509CertificateIdentityDefinition(X509Certificate2, Boolean)
Initializes new instance from provided X.509 certificate.
Declaration
public X509CertificateIdentityDefinition(X509Certificate2 certificate, bool storePrivateKey = true)
  Parameters
| Type | Name | Description | 
|---|---|---|
| X509Certificate2 | certificate | X.509 certificate used to initialize new instance.  | 
      
| Boolean | storePrivateKey | Flag indicating that private key must be exported to RawData property.  | 
      
X509CertificateIdentityDefinition(X509CertificateEndpointIdentity)
Initialize new instance from provided endpoint identity.
Declaration
public X509CertificateIdentityDefinition(X509CertificateEndpointIdentity identity)
  Parameters
| Type | Name | Description | 
|---|---|---|
| X509CertificateEndpointIdentity | identity | Endpoint identity used to initialize new instance.  | 
      
Properties
IsEndpointIdentity
Gets flag indicating that identity can be used to create EndpointIdentity.
Declaration
public override bool IsEndpointIdentity { get; }
  Property Value
| Type | Description | 
|---|---|
| Boolean | 
Overrides
Kind
Gets stored identity kind (like X.509 certificate, SPN, etc).
Declaration
public override IdentityKind Kind { get; protected set; }
  Property Value
| Type | Description | 
|---|---|
| IdentityKind | 
Overrides
Methods
GetConfiguration()
Returns endpoint <identity/> configuration element corresponding to the identity stored in this instance. This method is applied to service identities only.
Declaration
public override string GetConfiguration()
  Returns
| Type | Description | 
|---|---|
| String | Endpoint <identity/> configuration element corresponding to the identity stored in this instance.  | 
      
Overrides
GetEndpointIdentity()
Returns EndpointIdentity object populated with the data stored in this instance.
Declaration
public override EndpointIdentity GetEndpointIdentity()
  Returns
| Type | Description | 
|---|---|
| EndpointIdentity | EndpointIdentity object populated with the data stored in this instance.  |