-
- All Implemented Interfaces:
public class RSAValidator
Validate RSA PEM keys.
-
-
Method Summary
Modifier and Type Method Description static boolean
isPublicKey(String pem)
Check if the given string is an RSA public key. static boolean
isPrivateKey(String pem)
Check if the given string is an RSA private key. -
-
Method Detail
-
isPublicKey
static boolean isPublicKey(String pem)
Check if the given string is an RSA public key.
- Parameters:
pem
- The PEM string to check.
-
isPrivateKey
static boolean isPrivateKey(String pem)
Check if the given string is an RSA private key.
- Parameters:
pem
- The PEM string to check.
-
-
-
-