public final class JsonWebKey extends Object
Constructor and Description |
---|
JsonWebKey(String kty)
Creates an instance of JsonWebKey class.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlg()
Get the alg property: The "alg" (algorithm) parameter identifies the algorithm intended for use with the key.
|
String |
getCrv()
Get the crv property: The "crv" (curve) parameter identifies the curve type.
|
String |
getD()
Get the d property: RSA private exponent or ECC private key.
|
String |
getDp()
Get the dp property: RSA Private Key Parameter.
|
String |
getDq()
Get the dq property: RSA Private Key Parameter.
|
String |
getE()
Get the e property: RSA public exponent, in Base64.
|
String |
getK()
Get the k property: Symmetric key.
|
String |
getKid()
Get the kid property: The "kid" (key ID) parameter is used to match a specific key.
|
String |
getKty()
Get the kty property: The "kty" (key type) parameter identifies the cryptographic algorithm family used with the
key, such as "RSA" or "EC".
|
String |
getN()
Get the n property: RSA modulus, in Base64.
|
String |
getP()
Get the p property: RSA secret prime.
|
String |
getQ()
Get the q property: RSA secret prime, with p < q.
|
String |
getQi()
Get the qi property: RSA Private Key Parameter.
|
String |
getUse()
Get the use property: Use ("public key use") identifies the intended use of the public key.
|
String |
getX()
Get the x property: X coordinate for the Elliptic Curve point.
|
List<String> |
getX5C()
Get the x5C property: The "x5c" (X.509 certificate chain) parameter contains a chain of one or more PKIX
certificates [RFC5280].
|
String |
getY()
Get the y property: Y coordinate for the Elliptic Curve point.
|
JsonWebKey |
setAlg(String alg)
Set the alg property: The "alg" (algorithm) parameter identifies the algorithm intended for use with the key.
|
JsonWebKey |
setCrv(String crv)
Set the crv property: The "crv" (curve) parameter identifies the curve type.
|
JsonWebKey |
setD(String d)
Set the d property: RSA private exponent or ECC private key.
|
JsonWebKey |
setDp(String dp)
Set the dp property: RSA Private Key Parameter.
|
JsonWebKey |
setDq(String dq)
Set the dq property: RSA Private Key Parameter.
|
JsonWebKey |
setE(String e)
Set the e property: RSA public exponent, in Base64.
|
JsonWebKey |
setK(String k)
Set the k property: Symmetric key.
|
JsonWebKey |
setKid(String kid)
Set the kid property: The "kid" (key ID) parameter is used to match a specific key.
|
JsonWebKey |
setN(String n)
Set the n property: RSA modulus, in Base64.
|
JsonWebKey |
setP(String p)
Set the p property: RSA secret prime.
|
JsonWebKey |
setQ(String q)
Set the q property: RSA secret prime, with p < q.
|
JsonWebKey |
setQi(String qi)
Set the qi property: RSA Private Key Parameter.
|
JsonWebKey |
setUse(String use)
Set the use property: Use ("public key use") identifies the intended use of the public key.
|
JsonWebKey |
setX(String x)
Set the x property: X coordinate for the Elliptic Curve point.
|
JsonWebKey |
setX5C(List<String> x5C)
Set the x5C property: The "x5c" (X.509 certificate chain) parameter contains a chain of one or more PKIX
certificates [RFC5280].
|
JsonWebKey |
setY(String y)
Set the y property: Y coordinate for the Elliptic Curve point.
|
void |
validate()
Validates the instance.
|
public JsonWebKey(String kty)
kty
- the kty value to set.public String getAlg()
public JsonWebKey setAlg(String alg)
alg
- the alg value to set.public String getCrv()
public JsonWebKey setCrv(String crv)
crv
- the crv value to set.public String getD()
public JsonWebKey setD(String d)
d
- the d value to set.public String getDp()
public JsonWebKey setDp(String dp)
dp
- the dp value to set.public String getDq()
public JsonWebKey setDq(String dq)
dq
- the dq value to set.public String getE()
public JsonWebKey setE(String e)
e
- the e value to set.public String getK()
public JsonWebKey setK(String k)
k
- the k value to set.public String getKid()
public JsonWebKey setKid(String kid)
kid
- the kid value to set.public String getKty()
public String getN()
public JsonWebKey setN(String n)
n
- the n value to set.public String getP()
public JsonWebKey setP(String p)
p
- the p value to set.public String getQ()
public JsonWebKey setQ(String q)
q
- the q value to set.public String getQi()
public JsonWebKey setQi(String qi)
qi
- the qi value to set.public String getUse()
public JsonWebKey setUse(String use)
use
- the use value to set.public String getX()
public JsonWebKey setX(String x)
x
- the x value to set.public List<String> getX5C()
public JsonWebKey setX5C(List<String> x5C)
x5C
- the x5C value to set.public String getY()
public JsonWebKey setY(String y)
y
- the y value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.