mturk 2005/06/03 00:33:24
Modified: jni/java/org/apache/tomcat/jni SSLContext.java
Log:
Some functions can throw exceptions.
Revision Changes Path
1.12 +9 -5
jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/SSLContext.java
Index: SSLContext.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/SSLContext.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- SSLContext.java 2 Jun 2005 10:19:32 -0000 1.11
+++ SSLContext.java 3 Jun 2005 07:33:24 -0000 1.12
@@ -132,7 +132,8 @@
* @param ctx Server or Client context to use.
* @param ciphers An SSL cipher specification.
*/
- public static native boolean setCipherSuite(long ctx, String ciphers);
+ public static native boolean setCipherSuite(long ctx, String ciphers)
+ throws Exception;
/**
* Set Directory of PEM-encoded CA Certificates for Client Auth
@@ -198,7 +199,8 @@
* @param ctx Server or Client context to use.
* @param file Certificate file.
*/
- public static native boolean setCertificateFile(long ctx, String file);
+ public static native boolean setCertificateFile(long ctx, String file)
+ throws Exception;
/**
* Set Server Private Key
@@ -210,7 +212,8 @@
* @param ctx Server or Client context to use.
* @param file Server Private Key file.
*/
- public static native boolean setCertificateKeyFile(long ctx, String
file);
+ public static native boolean setCertificateKeyFile(long ctx, String file)
+ throws Exception;
/**
* Set File of concatenated PEM-encoded CA Certificates for Client Auth
@@ -342,6 +345,7 @@
* @param ctx Server or Client context to use.
* @param level Type of Client Certificate verification.
*/
- public static native boolean setVerifyClient(long ctx, int level);
+ public static native boolean setVerifyClient(long ctx, int level)
+ throws Exception;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]