本文整理汇总了Java中org.apache.tomcat.jni.SSLContext类的典型用法代码示例。如果您正苦于以下问题:Java SSLContext类的具体用法?Java SSLContext怎么用?Java SSLContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SSLContext类属于org.apache.tomcat.jni包,在下文中一共展示了SSLContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: cacheFull
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
/**
* Returns the number of sessions that were removed because the maximum session cache size was exceeded.
*/
public long cacheFull() {
return SSLContext.sessionCacheFull(context);
}
示例2: setSessionTimeout
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
@Override
public void setSessionTimeout(int seconds) {
if (seconds < 0) {
throw new IllegalArgumentException();
}
SSLContext.setSessionCacheTimeout(context, seconds);
}
示例3: setSessionCacheSize
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
@Override
public void setSessionCacheSize(int size) {
if (size < 0) {
throw new IllegalArgumentException();
}
SSLContext.setSessionCacheSize(context, size);
}
示例4: setTicketKeys
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
/**
* Sets the SSL session ticket keys of this context.
*/
public void setTicketKeys(byte[] keys) {
if (keys == null) {
throw new NullPointerException("keys");
}
SSLContext.setSessionTicketKeys(context, keys);
}
示例5: finalize
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
@Override
@SuppressWarnings("FinalizeDeclaration")
protected final void finalize() throws Throwable {
super.finalize();
synchronized (OpenSslContext.class) {
if (ctx != 0) {
SSLContext.free(ctx);
}
}
destroyPools();
}
示例6: number
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
/**
* Returns the current number of sessions in the internal session cache.
*/
public long number() {
return SSLContext.sessionNumber(context);
}
示例7: connect
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
/**
* Returns the number of started SSL/TLS handshakes in client mode.
*/
public long connect() {
return SSLContext.sessionConnect(context);
}
示例8: connectGood
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
/**
* Returns the number of successfully established SSL/TLS sessions in client mode.
*/
public long connectGood() {
return SSLContext.sessionConnectGood(context);
}
示例9: connectRenegotiate
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
/**
* Returns the number of start renegotiations in client mode.
*/
public long connectRenegotiate() {
return SSLContext.sessionConnectRenegotiate(context);
}
示例10: accept
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
/**
* Returns the number of started SSL/TLS handshakes in server mode.
*/
public long accept() {
return SSLContext.sessionAccept(context);
}
示例11: acceptGood
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
/**
* Returns the number of successfully established SSL/TLS sessions in server mode.
*/
public long acceptGood() {
return SSLContext.sessionAcceptGood(context);
}
示例12: acceptRenegotiate
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
/**
* Returns the number of start renegotiations in server mode.
*/
public long acceptRenegotiate() {
return SSLContext.sessionAcceptRenegotiate(context);
}
示例13: cbHits
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
/**
* Returns the number of successfully retrieved sessions from the external session cache in server mode.
*/
public long cbHits() {
return SSLContext.sessionCbHits(context);
}
示例14: getSessionTimeout
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
@Override
public int getSessionTimeout() {
return (int) SSLContext.getSessionCacheTimeout(context);
}
示例15: getSessionCacheSize
import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
@Override
public int getSessionCacheSize() {
return (int) SSLContext.getSessionCacheSize(context);
}