public class RsaJWK extends JWK
| Modifier and Type | Class and Description |
|---|---|
static class |
RsaJWK.OtherFactors
Holds the other prime factors.
|
| Constructor and Description |
|---|
RsaJWK(KeyUse use,
String alg,
String kid,
String n,
String e,
String x5u,
String x5t,
List<String> x5c)
Creates a RsaJWK.
|
RsaJWK(KeyUse use,
String alg,
String kid,
String n,
String e,
String d,
String x5u,
String x5t,
List<String> x5c)
Creates a RsaJWK.
|
RsaJWK(KeyUse use,
String alg,
String kid,
String n,
String e,
String d,
String p,
String q,
String dp,
String dq,
String qi,
List<RsaJWK.OtherFactors> factors,
String x5u,
String x5t,
List<String> x5c)
Creates a RsaJWK.
|
RsaJWK(KeyUse use,
String alg,
String kid,
String n,
String e,
String p,
String q,
String dp,
String dq,
String qi,
String x5u,
String x5t,
List<String> x5c)
Creates a RsaJWK.
|
RsaJWK(RSAPublicKey key,
KeyUse use,
String alg,
String kid,
String x5u,
String x5t,
List<String> x5c)
Creates a RsaJWK.
|
RsaJWK(RSAPublicKey pubKey,
RSAPrivateCrtKey privCert,
KeyUse use,
String alg,
String kid,
String x5u,
String x5t,
List<String> x5c)
Creates a RsaJWK.
|
RsaJWK(RSAPublicKey pubKey,
RSAPrivateKey privKey,
KeyUse use,
String alg,
String kid,
String x5u,
String x5t,
List<String> x5c)
Creates a RsaJWK.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCRTCoefficient()
Get the RSA First CRT Coefficient value.
|
String |
getModulus()
Get the RSA modulus value.
|
List<Object> |
getOtherFactors()
Get the RSA other factors value.
|
String |
getPrimeP()
Get the RSA First Prime Factor value.
|
String |
getPrimePExponent()
Get the RSA First Factor CRT Exponent value.
|
String |
getPrimeQ()
Get the RSA Second Prime Factor value.
|
String |
getPrimeQExponent()
Get the RSA Second factor CRT Exponent value.
|
String |
getPrivateExponent()
Get the RSA Private Exponent value.
|
String |
getPublicExponent()
Get the RSA Public Exponent.
|
static RsaJWK |
parse(JsonValue json)
Parses a RsaJWK from a jsonValue Object.
|
static RsaJWK |
parse(String json)
Parses a RsaJWK from a json string.
|
String |
toJsonString()
Prints the RsaJWK object as a json string.
|
KeyPair |
toKeyPair()
Create a KeyPair using the JWK.
|
RSAPrivateKey |
toRSAPrivateKey()
Creates a RSAPrivateKey from the JWK.
|
RSAPublicKey |
toRSAPublicKey()
Creates a RSAPublicKey from the JWK.
|
getAlgorithm, getKeyId, getKeyType, getUse, getX509Chain, getX509Thumbnail, getX509URL, toJsonValuecheckListValuesAreOfType, checkValueIsOfType, get, isDefined, isValueOfType, keys, put, toStringpublic RsaJWK(KeyUse use, String alg, String kid, String n, String e, String x5u, String x5t, List<String> x5c)
use - the use of the JWKalg - the alg of the JWKkid - the key id of the JWKn - the modulus of the JWKe - the public exponent JWKx5u - the x509 url for the keyx5t - the x509 thumbnail for the keyx5c - the x509 chain as a list of Base64 encoded stringspublic RsaJWK(KeyUse use, String alg, String kid, String n, String e, String d, String x5u, String x5t, List<String> x5c)
use - the use of the JWKalg - the alg of the JWKkid - the key id of the JWKn - the modulus of the JWKe - the public exponent JWKd - the private exponent JWKx5u - the x509 url for the keyx5t - the x509 thumbnail for the keyx5c - the x509 chain as a list of Base64 encoded stringspublic RsaJWK(KeyUse use, String alg, String kid, String n, String e, String p, String q, String dp, String dq, String qi, String x5u, String x5t, List<String> x5c)
use - the use of the JWKalg - the alg of the JWKkid - the key id of the JWKn - the modulus of the JWKe - the public exponent JWKp - the first prime factor of the JWKq - the second prime factor of the JWKdp - the first factor exponent of the JWKdq - the second factor exponent of the JWKqi - the first CRT Coefficient of the JWKx5u - the x509 url for the keyx5t - the x509 thumbnail for the keyx5c - the x509 chain as a list of Base64 encoded stringspublic RsaJWK(KeyUse use, String alg, String kid, String n, String e, String d, String p, String q, String dp, String dq, String qi, List<RsaJWK.OtherFactors> factors, String x5u, String x5t, List<String> x5c)
use - the use of the JWKalg - the alg of the JWKkid - the key id of the JWKn - the modulus of the JWKe - the public exponent JWKd - the private exponent JWKp - the first prime factor of the JWKq - the second prime factor of the JWKdp - the first factor exponent of the JWKdq - the second factor exponent of the JWKqi - the first CRT Coefficient of the JWKfactors - the extra factors of the JWKx5u - the x509 url for the keyx5t - the x509 thumbnail for the keyx5c - the x509 chain as a list of Base64 encoded stringspublic RsaJWK(RSAPublicKey key, KeyUse use, String alg, String kid, String x5u, String x5t, List<String> x5c)
use - the use of the JWKalg - the alg of the JWKkid - the key id of the JWKkey - the RSAPublicKey to usex5u - the x509 url for the keyx5t - the x509 thumbnail for the keyx5c - the x509 chain as a list of Base64 encoded stringspublic RsaJWK(RSAPublicKey pubKey, RSAPrivateKey privKey, KeyUse use, String alg, String kid, String x5u, String x5t, List<String> x5c)
use - the use of the JWKalg - the alg of the JWKkid - the key id of the JWKpubKey - the RSAPublicKey to useprivKey - the RSAPrivateKey to usex5u - the x509 url for the keyx5t - the x509 thumbnail for the keyx5c - the x509 chain as a list of Base64 encoded stringspublic RsaJWK(RSAPublicKey pubKey, RSAPrivateCrtKey privCert, KeyUse use, String alg, String kid, String x5u, String x5t, List<String> x5c)
use - the use of the JWKalg - the alg of the JWKkid - the key id of the JWKpubKey - the RSAPublicKey to useprivCert - the RSAPrivateCrtKey to usex5u - the x509 url for the keyx5t - the x509 thumbnail for the keyx5c - the x509 chain as a list of Base64 encoded stringspublic String getModulus()
public String getPublicExponent()
public String getPrivateExponent()
public String getPrimeP()
public String getPrimeQ()
public String getPrimePExponent()
public String getPrimeQExponent()
public String getCRTCoefficient()
public List<Object> getOtherFactors()
public RSAPublicKey toRSAPublicKey()
public RSAPrivateKey toRSAPrivateKey()
public KeyPair toKeyPair()
public static RsaJWK parse(String json)
json - a string json objectpublic static RsaJWK parse(JsonValue json)
json - a jsonValue objectpublic String toJsonString()
toJsonString in class JWKCopyright © 2025 Open Identity Platform Community. All rights reserved.