Class SecurityTokenServiceSettings
Provides configuration settings for the internal Security Token Service (STS).
Inheritance
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class SecurityTokenServiceSettings : IValidator, IEquatable<SecurityTokenServiceSettings>, IExtensibleDataObject
Constructors
SecurityTokenServiceSettings()
Initializes a new instance with default values.
Declaration
public SecurityTokenServiceSettings()
Properties
ErrorMessage
Gets the summary of validation errors.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
ExtensionData
Gets or sets System.Runtime.Serialization.ExtensionDataObject that enables serialization round trips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
Type | Description |
---|---|
System.Runtime.Serialization.ExtensionDataObject |
JwtSigningAlgorithm
Gets or sets the algorithm to be used for signing JWT tokens. Default is RS256.
Declaration
public SignatureAlgorithm JwtSigningAlgorithm { get; set; }
Property Value
Type | Description |
---|---|
SignatureAlgorithm |
SigningSecret
Gets or sets the base64-Url-encoded string containing HMAC secret to be used for signing JWT tokens. This value is required, if HMAC signature algorithm is selected.
Declaration
public string SigningSecret { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TokenLifetime
Gets or sets the requested lifetime for SAML and JWT tokens. Default is one hour.
Declaration
public TimeSpan TokenLifetime { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Methods
Equals(SecurityTokenServiceSettings)
Determines whether the specified instance is equal to the current instance.
Declaration
public bool Equals(SecurityTokenServiceSettings other)
Parameters
Type | Name | Description |
---|---|---|
SecurityTokenServiceSettings | other | The instance to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | True, if instances are equal. False, if instances 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 |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.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 |
---|---|
System.Int32 | Hash code of the current instance. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if state is valid; otherwise, false. |