SstRsaJwk
This is the RSA Json Web Keys (JWK)
Class Methods
fromPKey:
Answer a JWK representation of the RSA PKey
Arguments:
aPKey - <OSSslRSAKey>
Answers:
<SstJwk>
fromX509Cert:
Answer a JWK representation of the anX509Cert
Arguments:
aPKey - <OSSslX509>
Answers:
<SstJwk>
Instance Methods
asPKey
Answer the Cryptography PKey version of this JWK
Note that JWK metadata outside of key parameters
are not transferred
Answers:
<OSSslRSAKey>
asPublicKey
Answer a copy of this JWK with all private and sensitive parameters removed
Answers:
<SstJwk>
d
Answers the private exponent (d) of the RSA key.
Answers:
<String>
d:
Sets the private exponent (d) of the RSA key.
@see RFC 7518 (section 6.3.2.x) for more details
Arguments:
aValue - <String>
dp
Answer the first factor Chinese Remainder Theorem (CRT) exponent (dp)
of the private RSA key.
Answers:
<String>
dp:
Sets the first factor Chinese Remainder Theorem (CRT) exponent (dp)
of the private RSA key.
@see RFC 7518 (section 6.3.2.x) for more details
Arguments:
aValue - <String>
dq
Answer the second factor Chinese Remainder Theorem (CRT) exponent (dp)
of the private RSA key.
Answers:
<String>
dq:
Sets the second factor Chinese Remainder Theorem (CRT) exponent (dp)
of the private RSA key.
@see RFC 7518 (section 6.3.2.x) for more details
Arguments:
aValue - <String>
e
Answers the public exponent (e) of the RSA key.
Answers:
<String>
e:
Sets the public exponent (e) of the RSA key.
@see RFC 7518 (section 6.3.2.x) for more details
Arguments:
aValue - <String>
isPrivateKey
Answers true if this JWK contains private parameters, false otherwise
Answers:
<Boolean>
n
Answers the modulus value (n) of the RSA key.
Answers:
<String>
n:
Sets the modulus value (n) of the RSA key.
@see RFC 7518 (section 6.3.2.x) for more details
Arguments:
aValue - <String>
p
Answer the first prime factor (p) of the private RSA key.
Answers:
<String>
p:
Sets the first prime factor (p) of the private RSA key.
@see RFC 7518 (section 6.3.2.x) for more details
Arguments:
aValue - <String>
q
Answer the second prime factor (q) of the private RSA key.
Answers:
<String>
q:
Sets the second prime factor (q) of the private RSA key.
@see RFC 7518 (section 6.3.2.x) for more details
Arguments:
aValue - <String>
qi
Answers the first Chinese Remainder Theorem (CRT) coefficient (qi)}
of the private RSA key.
Answers:
<String>
qi:
Sets the first Chinese Remainder Theorem (CRT) coefficient (qi)}
of the private RSA key.
@see RFC 7518 (section 6.3.2.x) for more details
Arguments:
aValue - <String>
Last modified date: 01/09/2026