Class OAuthClientIdentityDefinition
Represents the serializable OAuth client credentials.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services.Identities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class OAuthClientIdentityDefinition : IdentityDefinitionBase, IValidator, IExtensibleDataObject
Constructors
OAuthClientIdentityDefinition()
Initializes an empty instance.
Declaration
public OAuthClientIdentityDefinition()
OAuthClientIdentityDefinition(Identity)
Initializes new instance from provided Identity object.
Declaration
public OAuthClientIdentityDefinition(Identity identity)
Parameters
Type | Name | Description |
---|---|---|
Identity | identity | Identity object used to populate new instance. |
OAuthClientIdentityDefinition(String, String)
Initializes new instance from provided client id and secret.
Declaration
public OAuthClientIdentityDefinition(string clientId, string clientSecret)
Parameters
Type | Name | Description |
---|---|---|
System.String | clientId | Client ID associated with the credentials. |
System.String | clientSecret | Client secret associated with the credentials. |
Properties
ClientId
Gets the client identifier associated with the credentials.
Declaration
public string ClientId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ClientSecret
Gets the client secret associated with the credentials.
Declaration
public string ClientSecret { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FriendlyName
Gets or sets the friendly name describing stored identity.
Declaration
public override string FriendlyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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
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 |
---|---|
System.Boolean | True if object's state is valid; otherwise, false. |