Package 

Class RSAValidator

  • All Implemented Interfaces:

    
    public class RSAValidator
    
                        

    Validate RSA PEM keys.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.