Package com.nimbusds.jose.jwk.loader
Class WeakRSAKeyDetector
- java.lang.Object
-
- com.nimbusds.jose.jwk.loader.WeakRSAKeyDetector
-
public class WeakRSAKeyDetector extends Object
Detector of weak RSA keys (shorter than 2048 bits).
-
-
Constructor Summary
Constructors Constructor Description WeakRSAKeyDetector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>
findWeakRSAKeys(com.nimbusds.jose.jwk.JWKSet jwkSet)
Finds weak RSA keys (shorter than 2048 bits) in the specified JWK set.
-
-
-
Constructor Detail
-
WeakRSAKeyDetector
public WeakRSAKeyDetector()
-
-
Method Detail
-
findWeakRSAKeys
public static List<String> findWeakRSAKeys(com.nimbusds.jose.jwk.JWKSet jwkSet)
Finds weak RSA keys (shorter than 2048 bits) in the specified JWK set.- Parameters:
jwkSet
- The JWK set.- Returns:
- The key IDs of the weak keys, empty list if none found. May contain null IDs.
-
-