Class JSONWebKey
JSON Web Key for validating authentication tokens.
Inherited Members
Namespace: Unity.Services.Apis.PlayerAuthentication
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "JSONWebKey")]
[Preserve]
public class JSONWebKey
Constructors
JSONWebKey(string, string, string, string, string, string, string, string, string)
Initializes a new instance of the JSONWeb
Declaration
[Preserve]
public JSONWebKey(string alg = null, string e = null, string kid = null, string kty = null, string n = null, string crv = null, string x = null, string y = null, string use = null)
Parameters
Type | Name | Description |
---|---|---|
string | alg | alg (required). |
string | e | e. |
string | kid | kid (required). |
string | kty | kty (required). |
string | n | n. |
string | crv | crv. |
string | x | x. |
string | y | y. |
string | use | use (required). |
Properties
Alg
Gets or Sets Alg
Declaration
[DataMember(Name = "alg", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Alg { get; set; }
Property Value
Type | Description |
---|---|
string |
Crv
Gets or Sets Crv
Declaration
[DataMember(Name = "crv", EmitDefaultValue = false)]
[Preserve]
public string Crv { get; set; }
Property Value
Type | Description |
---|---|
string |
E
Gets or Sets E
Declaration
[DataMember(Name = "e", EmitDefaultValue = false)]
[Preserve]
public string E { get; set; }
Property Value
Type | Description |
---|---|
string |
Kid
Gets or Sets Kid
Declaration
[DataMember(Name = "kid", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Kid { get; set; }
Property Value
Type | Description |
---|---|
string |
Kty
Gets or Sets Kty
Declaration
[DataMember(Name = "kty", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Kty { get; set; }
Property Value
Type | Description |
---|---|
string |
N
Gets or Sets N
Declaration
[DataMember(Name = "n", EmitDefaultValue = false)]
[Preserve]
public string N { get; set; }
Property Value
Type | Description |
---|---|
string |
Use
Gets or Sets Use
Declaration
[DataMember(Name = "use", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Use { get; set; }
Property Value
Type | Description |
---|---|
string |
X
Gets or Sets X
Declaration
[DataMember(Name = "x", EmitDefaultValue = false)]
[Preserve]
public string X { get; set; }
Property Value
Type | Description |
---|---|
string |
Y
Gets or Sets Y
Declaration
[DataMember(Name = "y", EmitDefaultValue = false)]
[Preserve]
public string Y { get; set; }
Property Value
Type | Description |
---|---|
string |