You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jf...@apache.org on 2015/11/08 11:49:53 UTC
svn commit: r1713221 -
/tomcat/trunk/java/org/apache/tomcat/jni/SSLContext.java
Author: jfclere
Date: Sun Nov 8 10:49:53 2015
New Revision: 1713221
URL: http://svn.apache.org/viewvc?rev=1713221&view=rev
Log:
Add the java of the native setCertificateRaw.
Modified:
tomcat/trunk/java/org/apache/tomcat/jni/SSLContext.java
Modified: tomcat/trunk/java/org/apache/tomcat/jni/SSLContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/jni/SSLContext.java?rev=1713221&r1=1713220&r2=1713221&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/jni/SSLContext.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/jni/SSLContext.java Sun Nov 8 10:49:53 2015
@@ -509,4 +509,15 @@ public final class SSLContext {
* @return {@code true} if success, {@code false} otherwise.
*/
public static native boolean setSessionIdContext(long ctx, byte[] sidCtx);
+
+ /**
+ * Set CertificateRaw
+ * <br>
+ * Use keystore a certificate and key to fill the BIOP
+ * @param ctx Server or Client context to use.
+ * @param cert Byte array with the certificate in DER encoding.
+ * @param key Byte array with the Private Key file in PEM format.
+ * @param idx Certificate index SSL_AIDX_RSA or SSL_AIDX_DSA.
+ */
+ public static native boolean setCertificateRaw(long ctx, byte[] cert, byte[] key, int sslAidxRsa);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org