CertPathSpi: fix encoding arg name
It appears an automated change has made "encoding" to "charsetName"
which doesn't make sense for the CertPath API since it's really an
encoding of the certificates that's being referenced.
Goes along with changes to CertPath made in change
228d2e19565a39e01849edd2f2b4d03e19d1ee3d
Change-Id: I05ea4adffa2100d4dcf78f8739bff13d40effebf
diff --git a/luni/src/main/java/java/security/cert/CertificateFactorySpi.java b/luni/src/main/java/java/security/cert/CertificateFactorySpi.java
index 95c66e3..117ef65 100644
--- a/luni/src/main/java/java/security/cert/CertificateFactorySpi.java
+++ b/luni/src/main/java/java/security/cert/CertificateFactorySpi.java
@@ -106,14 +106,15 @@
/**
* Generates a {@code CertPath} (a certificate chain) from the given
- * {@code inputStream}, assuming the given {@code charsetName}.
+ * {@code inputStream}, assuming the given {@code encoding} from
+ * {@link #engineGetCertPathEncodings()}.
*
* @throws CertificateException
* if parsing problems are detected.
* @throws UnsupportedOperationException
* if the provider does not implement this method.
*/
- public CertPath engineGenerateCertPath(InputStream inStream, String charsetName)
+ public CertPath engineGenerateCertPath(InputStream inStream, String encoding)
throws CertificateException {
throw new UnsupportedOperationException();
}