Class TokenValidationConfiguration
Represents the bearer token validation keys.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class TokenValidationConfiguration : IValidator, IEquatable<TokenValidationConfiguration>
Constructors
TokenValidationConfiguration()
Initializes an empty instance.
Declaration
public TokenValidationConfiguration()
TokenValidationConfiguration(TokenValidationConfiguration)
Initializes a new instance from provided configuration.
Declaration
public TokenValidationConfiguration(TokenValidationConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
TokenValidationConfiguration | configuration | An existing instance to be initialized from. |
Properties
ErrorMessage
Gets the summary of validation errors.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
String |
SigningSecrets
Gets the symmetric secret keys to be used for checking access token's signature. This property is applied to JWT token validation only.
Declaration
public Collection<BinarySecret> SigningSecrets { get; }
Property Value
Type | Description |
---|---|
Collection<BinarySecret> |
Methods
Equals(TokenValidationConfiguration)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(TokenValidationConfiguration other)
Parameters
Type | Name | Description |
---|---|---|
TokenValidationConfiguration | other | The objects to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | True, if objects are equal. False, if objects are not equal. |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | True, if objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Hash code of the current instance. |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
Boolean | True if state is valid; otherwise, false. |