当前位置: 首页>>代码示例>>Java>>正文


Java SSLContext类代码示例

本文整理汇总了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);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:7,代码来源:OpenSslSessionStats.java

示例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);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:8,代码来源:OpenSslServerSessionContext.java

示例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);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:8,代码来源:OpenSslServerSessionContext.java

示例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);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:10,代码来源:OpenSslSessionContext.java

示例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();
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:13,代码来源:OpenSslContext.java

示例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);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:7,代码来源:OpenSslSessionStats.java

示例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);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:7,代码来源:OpenSslSessionStats.java

示例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);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:7,代码来源:OpenSslSessionStats.java

示例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);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:7,代码来源:OpenSslSessionStats.java

示例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);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:7,代码来源:OpenSslSessionStats.java

示例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);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:7,代码来源:OpenSslSessionStats.java

示例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);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:7,代码来源:OpenSslSessionStats.java

示例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);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:7,代码来源:OpenSslSessionStats.java

示例14: getSessionTimeout

import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
@Override
public int getSessionTimeout() {
    return (int) SSLContext.getSessionCacheTimeout(context);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:5,代码来源:OpenSslServerSessionContext.java

示例15: getSessionCacheSize

import org.apache.tomcat.jni.SSLContext; //导入依赖的package包/类
@Override
public int getSessionCacheSize() {
    return (int) SSLContext.getSessionCacheSize(context);
}
 
开发者ID:wuyinxian124,项目名称:netty4.0.27Learn,代码行数:5,代码来源:OpenSslServerSessionContext.java


注:本文中的org.apache.tomcat.jni.SSLContext类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。