Class SpnIdentityDefinition
Represents serializable service principal name (SPN) service identity.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services.Identities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
public sealed class SpnIdentityDefinition : IdentityDefinitionBase, IValidator, IExtensibleDataObject
Constructors
SpnIdentityDefinition()
Initializes an empty instance.
Declaration
public SpnIdentityDefinition()
SpnIdentityDefinition(Identity)
Initializes new instance from provided Identity object.
Declaration
[SuppressMessage("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId = "0")]
public SpnIdentityDefinition(Identity identity)
Parameters
| Type | Name | Description |
|---|---|---|
| Identity | identity | Identity object used to populate new instance. |
SpnIdentityDefinition(SpnEndpointIdentity)
Initialize new instance from provided endpoint identity.
Declaration
public SpnIdentityDefinition(SpnEndpointIdentity identity)
Parameters
| Type | Name | Description |
|---|---|---|
| SpnEndpointIdentity | identity | Endpoint identity used to initialize new instance. |
SpnIdentityDefinition(string)
Initializes new instance from provided service principal name (SPN).
Declaration
public SpnIdentityDefinition(string servicePrincipalName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | servicePrincipalName | Service principal name (SPN) used to initialize new instance. |
Properties
FriendlyName
Gets or sets the friendly name describing stored identity.
Declaration
[DataMember]
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 |
|---|---|
| bool |
Overrides
Kind
Gets stored identity kind (like X.509 certificate, SPN, etc).
Declaration
[DataMember]
public override IdentityKind Kind { get; protected set; }
Property Value
| Type | Description |
|---|---|
| IdentityKind |
Overrides
ServicePrincipalName
Gets or sets Kerberos service principal name (SPN).
Declaration
[DataMember]
public string ServicePrincipalName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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 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 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 |
|---|---|
| bool | True if object's state is valid; otherwise, false. |