code: public static String toBase64(final PrivateKey privateKey)
  	{
  		final byte[] encoded = privateKey.getEncoded();
  		final String privateKeyAsBase64String = Base64.encodeBase64String(encoded);
  		return privateKeyAsBase64String;
  	}
docs: Transform the given {@link PrivateKey} to a base64 encoded {@link String} value.
  
  @param privateKey
  the private key
  @return the new base64 encoded {@link String} value.