public class RSAKeyUtils extends Object
| Constructor and Description |
|---|
RSAKeyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
keyBitLength(PrivateKey privateKey)
Returns the length in bits of the specified RSA private key.
|
static PrivateKey |
toRSAPrivateKey(RSAKey rsaJWK)
Returns the private RSA key of the specified RSA JWK.
|
public RSAKeyUtils()
public static PrivateKey toRSAPrivateKey(RSAKey rsaJWK) throws JOSEException
rsaJWK - The RSA JWK. Must not be null.JOSEException - If the RSA JWK doesn't contain a private part.public static int keyBitLength(PrivateKey privateKey)
privateKey - The RSA private key. Must not be null.getModulus() method.Copyright © 2019 Connect2id Ltd.. All rights reserved.