public static String fromPKCS1ToPemFormat(final byte[] privateKeyPKCS1Formatted)
		throws IOException
	{
		PemObject pemObject = new PemObject(PrivateKeyReader.RSA_PRIVATE_KEY,
			privateKeyPKCS1Formatted);
		StringWriter stringWriter = new StringWriter();
		PemWriter pemWriter = new PemWriter(stringWriter);
		pemWriter.writeObject(pemObject);
		pemWriter.close();
		String string = stringWriter.toString();
		return string;
	}
public static String fromPKCS1ToPemFormat ( final byte [ ] privateKeyPKCS1Formatted ) throws IOException { PemObject pemObject = new PemObject ( PrivateKeyReader . RSA_PRIVATE_KEY , privateKeyPKCS1Formatted ) ; StringWriter stringWriter = new StringWriter ( ) ; PemWriter pemWriter = new PemWriter ( stringWriter ) ; pemWriter . writeObject ( pemObject ) ; pemWriter . close ( ) ; String string = stringWriter . toString ( ) ; return string ; }
Transform the given byte array(of private key in PKCS#1 format) to a PEM formatted
{@link String}.

@param privateKeyPKCS1Formatted
the byte array(of private key in PKCS#1 format)
@return the String in PEM-Format
@throws IOException
Signals that an I/O exception has occurred