Class X509CertificateThumbprintIdentityDefinition
Represents X.509 certificate client or service identity. The certificate is specified by its thumbprint value. The actual certificate must be located in the Local Machine Personal certificate store.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services.Identities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class X509CertificateThumbprintIdentityDefinition : IdentityDefinitionBase, IValidator, IExtensibleDataObject, IX509CertificateIdentity
Constructors
X509CertificateThumbprintIdentityDefinition()
Initializes an empty instance.
Declaration
public X509CertificateThumbprintIdentityDefinition()
X509CertificateThumbprintIdentityDefinition(Identity)
Initializes new instance from provided Identity object.
Declaration
public X509CertificateThumbprintIdentityDefinition(Identity identity)
Parameters
Type | Name | Description |
---|---|---|
Identity | identity | Identity object used to populate new instance. |
X509CertificateThumbprintIdentityDefinition(String)
Initializes new instance from provided X.509 certificate's thumbprint value.
Declaration
public X509CertificateThumbprintIdentityDefinition(string thumbprint)
Parameters
Type | Name | Description |
---|---|---|
String | thumbprint | X.509 certificate's thumbprint value. |
Properties
FriendlyName
Gets or sets the friendly name describing stored identity.
Declaration
public override string FriendlyName { get; set; }
Property Value
Type | Description |
---|---|
String |
Overrides
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
Thumbprint
Gets or sets the certificate's thumbprint value.
Declaration
public string Thumbprint { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
GetCertificate(Boolean)
Returns X.509 certificate represented by this identity.
Declaration
public X509Certificate2 GetCertificate(bool mustHavePrivateKey)
Parameters
Type | Name | Description |
---|---|---|
Boolean | mustHavePrivateKey | Flag indicating that returned X.509 certificate must have a private key. If key does not exists or is not accessible than exception will be thrown. |
Returns
Type | Description |
---|---|
X509Certificate2 | X.509 certificate represented by this identity. |
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. This method is applied to service identities only.
Declaration
public override EndpointIdentity GetEndpointIdentity()
Returns
Type | Description |
---|---|
EndpointIdentity | EndpointIdentity object populated with the data stored in this instance. |
Overrides
GetIdentity()
Returns Identity object populated with the data stored in this instance.
Declaration
public override Identity GetIdentity()
Returns
Type | Description |
---|---|
Identity | Identity object populated with the data stored in this instance. |
Overrides
Validate()
Validates this domain object's state.
Declaration
public override bool Validate()
Returns
Type | Description |
---|---|
Boolean | True if object's state is valid; otherwise, false. |