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 |
---|---|---|
System.Security.Cryptography.X509Certificates.X509Certificate2 | certificate | X.509 certificate used to initialize new instance. |
System.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 |
---|---|---|
System.ServiceModel.X509CertificateEndpointIdentity | identity | Endpoint identity used to initialize new instance. |
Properties
IsEndpointIdentity
Gets flag indicating that identity can be used to create System.ServiceModel.EndpointIdentity.
Declaration
public override bool IsEndpointIdentity { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.String | Endpoint <identity/> configuration element corresponding to the identity stored in this instance. |
Overrides
GetEndpointIdentity()
Returns System.ServiceModel.EndpointIdentity object populated with the data stored in this instance.
Declaration
public override EndpointIdentity GetEndpointIdentity()
Returns
Type | Description |
---|---|
System.ServiceModel.EndpointIdentity | System.ServiceModel.EndpointIdentity object populated with the data stored in this instance. |