code: public static String readPemFileAsBase64(final File file) throws IOException
  	{
  		final byte[] keyBytes = Files.readAllBytes(file.toPath());
  		final String publicKeyAsBase64String = new String(keyBytes)
  			.replace(BEGIN_PUBLIC_KEY_PREFIX, "").replace(END_PUBLIC_KEY_SUFFIX, "");
  		return publicKeyAsBase64String;
  	}
docs: Read the public key from a pem file as base64 encoded {@link String} value.
  
  @param file
  the file in pem format that contains the public key.
  @return the base64 encoded {@link String} value.
  @throws IOException
  Signals that an I/O exception has occurred.