-
- All Implemented Interfaces:
public class RSAValidatorValidate RSA PEM keys.
-
-
Method Summary
Modifier and Type Method Description static booleanisPublicKey(String pem)Check if the given string is an RSA public key. static booleanisPrivateKey(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.
-
-
-
-