Class CertificateUtil

java.lang.Object
org.apache.hadoop.security.authentication.util.CertificateUtil

public class CertificateUtil extends Object
  • Constructor Details

    • CertificateUtil

      public CertificateUtil()
  • Method Details

    • parseRSAPublicKey

      public static RSAPublicKey parseRSAPublicKey(String pem) throws javax.servlet.ServletException
      Gets an RSAPublicKey from the provided PEM encoding.
      Parameters:
      pem - - the pem encoding from config without the header and footer
      Returns:
      RSAPublicKey the RSA public key
      Throws:
      javax.servlet.ServletException - thrown if a processing error occurred