Class TokenResponse
- Namespace
- KernLab.Claim.Client
- Assembly
- KernLab.Claim.Client.dll
token 端点响应(错误以 ClaimClientException 抛出,不落此类型)。
public sealed record TokenResponse : IEquatable<TokenResponse>
- Inheritance
-
TokenResponse
- Implements
- Inherited Members
Constructors
TokenResponse(string, string, int, string?, string)
token 端点响应(错误以 ClaimClientException 抛出,不落此类型)。
public TokenResponse(string AccessToken, string TokenType, int ExpiresIn, string? RefreshToken, string Scope)
Parameters
Properties
AccessToken
public string AccessToken { get; init; }
Property Value
ExpiresIn
public int ExpiresIn { get; init; }
Property Value
RefreshToken
public string? RefreshToken { get; init; }
Property Value
Scope
public string Scope { get; init; }
Property Value
TokenType
public string TokenType { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out int, out string?, out string)
public void Deconstruct(out string AccessToken, out string TokenType, out int ExpiresIn, out string? RefreshToken, out string Scope)
Parameters
Equals(TokenResponse?)
public bool Equals(TokenResponse? other)
Parameters
otherTokenResponse
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(TokenResponse?, TokenResponse?)
public static bool operator ==(TokenResponse? left, TokenResponse? right)
Parameters
leftTokenResponserightTokenResponse
Returns
operator !=(TokenResponse?, TokenResponse?)
public static bool operator !=(TokenResponse? left, TokenResponse? right)
Parameters
leftTokenResponserightTokenResponse