1 17 18 package org.apache.tomcat.jni; 19 20 25 26 public final class SSLContext { 27 28 29 47 public static native long make(long pool, int protocol, int mode) 48 throws Exception ; 49 50 55 public static native int free(long ctx); 56 57 62 public static native void setContextId(long ctx, String id); 63 64 83 public static native void setBIO(long ctx, long bio, int dir); 84 85 90 public static native void setOptions(long ctx, int options); 91 92 111 public static native void setQuietShutdown(long ctx, boolean mode); 112 113 127 public static native boolean setCipherSuite(long ctx, String ciphers) 128 throws Exception ; 129 130 149 public static native boolean setCARevocation(long ctx, String file, 150 String path) 151 throws Exception ; 152 153 173 public static native boolean setCertificateChainFile(long ctx, String file, 174 boolean skipfirst); 175 176 198 public static native boolean setCertificate(long ctx, String cert, 199 String key, String password, 200 int idx) 201 throws Exception ; 202 203 224 public static native boolean setCACertificate(long ctx, String file, 225 String path) 226 throws Exception ; 227 228 240 public static native void setShutdowType(long ctx, int type); 241 242 275 public static native void setVerify(long ctx, int level, int depth); 276 277 } 278 | Popular Tags |