本文整理了Java中javax.net.ssl.SSLContext.getServerSessionContext()
方法的一些代码示例,展示了SSLContext.getServerSessionContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SSLContext.getServerSessionContext()
方法的具体详情如下:
包路径:javax.net.ssl.SSLContext
类名称:SSLContext
方法名:getServerSessionContext
[英]Returns the SSL session context that encapsulates the set of SSL sessions that can be used for handshake of server-side SSL sockets.
[中]返回SSL会话上下文,该上下文封装可用于服务器端SSL套接字握手的SSL会话集。
代码示例来源:origin: apache/ignite
/** {@inheritDoc} */
@Override protected SSLSessionContext engineGetServerSessionContext() {
return delegate.getServerSessionContext();
}
代码示例来源:origin: wildfly/wildfly
protected SSLSessionContext engineGetServerSessionContext() {
return delegate.getServerSessionContext();
}
代码示例来源:origin: wildfly/wildfly
@Override
protected SSLSessionContext engineGetServerSessionContext() {
return matcher.getDefaultContext().getServerSessionContext();
}
代码示例来源:origin: wildfly/wildfly
@Override
protected SSLSessionContext engineGetServerSessionContext() {
return matcher.getDefaultContext().getServerSessionContext();
}
代码示例来源:origin: jooby-project/jooby
/**
* Returns the JDK {@link SSLSessionContext} object held by this context.
*/
@Override
public final SSLSessionContext sessionContext() {
return context().getServerSessionContext();
}
代码示例来源:origin: redisson/redisson
null);
SSLSessionContext sessCtx = ctx.getServerSessionContext();
if (sessionCacheSize > 0) {
sessCtx.setSessionCacheSize((int) Math.min(sessionCacheSize, Integer.MAX_VALUE));
代码示例来源:origin: oracle/helidon
private static SSLContext newSSLContext(KeyConfig privateKeyConfig,
KeyConfig trustConfig,
long sessionCacheSize,
long sessionTimeout)
throws IOException, GeneralSecurityException {
KeyManagerFactory kmf = buildKmf(privateKeyConfig);
TrustManagerFactory tmf = buildTmf(trustConfig);
// Initialize the SSLContext to work with our key managers.
SSLContext ctx = SSLContext.getInstance(PROTOCOL);
ctx.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
SSLSessionContext sessCtx = ctx.getServerSessionContext();
if (sessionCacheSize > 0) {
sessCtx.setSessionCacheSize((int) Math.min(sessionCacheSize, Integer.MAX_VALUE));
}
if (sessionTimeout > 0) {
sessCtx.setSessionTimeout((int) Math.min(sessionTimeout, Integer.MAX_VALUE));
}
return ctx;
}
代码示例来源:origin: wildfly/wildfly
null);
SSLSessionContext sessCtx = ctx.getServerSessionContext();
if (sessionCacheSize > 0) {
sessCtx.setSessionCacheSize((int) Math.min(sessionCacheSize, Integer.MAX_VALUE));
代码示例来源:origin: redisson/redisson
/**
* Returns the JDK {@link SSLSessionContext} object held by this context.
*/
@Override
public final SSLSessionContext sessionContext() {
if (isServer()) {
return context().getServerSessionContext();
} else {
return context().getClientSessionContext();
}
}
代码示例来源:origin: jooby-project/jooby
null);
SSLSessionContext sessCtx = ctx.getServerSessionContext();
if (sessionCacheSize > 0) {
sessCtx.setSessionCacheSize((int) Math.min(sessionCacheSize, Integer.MAX_VALUE));
代码示例来源:origin: wildfly/wildfly
/**
* Returns the JDK {@link SSLSessionContext} object held by this context.
*/
@Override
public final SSLSessionContext sessionContext() {
if (isServer()) {
return context().getServerSessionContext();
} else {
return context().getClientSessionContext();
}
}
代码示例来源:origin: io.netty/netty
/**
* Returns the JDK {@link SSLSessionContext} object held by this context.
*/
public final SSLSessionContext sessionContext() {
if (isServer()) {
return context().getServerSessionContext();
} else {
return context().getClientSessionContext();
}
}
代码示例来源:origin: io.netty/netty
ctx.init(kmf.getKeyManagers(), null, null);
SSLSessionContext sessCtx = ctx.getServerSessionContext();
if (sessionCacheSize > 0) {
sessCtx.setSessionCacheSize((int) Math.min(sessionCacheSize, Integer.MAX_VALUE));
代码示例来源:origin: wildfly/wildfly
sslContext.getClientSessionContext().setSessionCacheSize(optionMap.get(Options.SSL_CLIENT_SESSION_CACHE_SIZE, 0));
sslContext.getClientSessionContext().setSessionTimeout(optionMap.get(Options.SSL_CLIENT_SESSION_TIMEOUT, 0));
sslContext.getServerSessionContext().setSessionCacheSize(optionMap.get(Options.SSL_SERVER_SESSION_CACHE_SIZE, 0));
sslContext.getServerSessionContext().setSessionTimeout(optionMap.get(Options.SSL_SERVER_SESSION_TIMEOUT, 0));
return sslContext;
代码示例来源:origin: wildfly/wildfly
SSLSessionContext sessionContext = clientMode ? sslContext.getClientSessionContext() : sslContext.getServerSessionContext();
if (sessionContext != null) {
if (sessionCacheSize >= 0) sessionContext.setSessionCacheSize(sessionCacheSize);
代码示例来源:origin: io.netty/netty-handler
null);
SSLSessionContext sessCtx = ctx.getServerSessionContext();
if (sessionCacheSize > 0) {
sessCtx.setSessionCacheSize((int) Math.min(sessionCacheSize, Integer.MAX_VALUE));
代码示例来源:origin: javaee/glassfish
configureSSLSessionContext(context.getServerSessionContext());
String trustAlgorithm = (String) attributes.get("truststoreAlgorithm");
if (trustAlgorithm == null) {
代码示例来源:origin: io.netty/netty-handler
/**
* Returns the JDK {@link SSLSessionContext} object held by this context.
*/
@Override
public final SSLSessionContext sessionContext() {
if (isServer()) {
return context().getServerSessionContext();
} else {
return context().getClientSessionContext();
}
}
代码示例来源:origin: org.eclipse.jetty/jetty-util
SSLSessionContext serverContext = context.getServerSessionContext();
if (serverContext != null)
代码示例来源:origin: apache/activemq-artemis
/**
* Returns the JDK {@link SSLSessionContext} object held by this context.
*/
@Override
public final SSLSessionContext sessionContext() {
if (isServer()) {
return context().getServerSessionContext();
} else {
return context().getClientSessionContext();
}
}
内容来源于网络,如有侵权,请联系作者删除!