本文整理了Java中javax.net.ssl.SSLHandshakeException.getCause()
方法的一些代码示例,展示了SSLHandshakeException.getCause()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SSLHandshakeException.getCause()
方法的具体详情如下:
包路径:javax.net.ssl.SSLHandshakeException
类名称:SSLHandshakeException
方法名:getCause
暂无
代码示例来源:origin: com.51degrees/device-detection-webapp
"establilshed and threw error '%s'",
newDevicesUrl,
ex.getCause().toString()));
stop = true;
continue;
代码示例来源:origin: hengyunabc/zpush
@Override
public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {
logger.debug("userEventTriggered:" + evt);
if (evt instanceof IdleStateEvent) {
// 如果是长时间没有write事件,则尝试去从队列里拿出通知来发送
IdleStateEvent e = (IdleStateEvent) evt;
if (e.state() == IdleState.WRITER_IDLE) {
if (bTryShutdown == false) {
sendNextNotification();
}
}
} else if (evt instanceof SslHandshakeCompletionEvent) {
// 如果是SSL连接成功了,则先设置start()函数返回的future为success
if(((SslHandshakeCompletionEvent) evt).isSuccess()) {
DefaultChannelPromise sslHandshakePromise = ctx.channel().attr(SSL_HANDSHAKE_PROMISE).get();
sslHandshakePromise.setSuccess();
// 开始发送notification
sendNextNotification();
}else {
DefaultChannelPromise sslHandshakePromise = ctx.channel().attr(SSL_HANDSHAKE_PROMISE).get();
sslHandshakePromise.setFailure(((SslHandshakeCompletionEvent) evt).cause());
}
} else if (evt instanceof SSLHandshakeException) {
// 如果是SSL连接不成功,则先设置start()函数返回的future为failure
DefaultChannelPromise sslHandshakePromise = ctx.channel().attr(SSL_HANDSHAKE_PROMISE).get();
sslHandshakePromise.setFailure(((SSLHandshakeException) evt).getCause());
}
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
return new TaggedData(con, in, request.useCacheFile);
} catch (javax.net.ssl.SSLHandshakeException ste) {
task.done(ste.getCause()
.toString(), null);
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
return new TaggedData(con, in, request.useCacheFile);
} catch (javax.net.ssl.SSLHandshakeException ste) {
task.done(ste.getCause()
.toString(), null);
代码示例来源:origin: datatheorem/TrustKit-Android
test.createSocket(serverHostname, 443).getInputStream();
} catch (SSLHandshakeException e) {
if ((e.getCause() instanceof CertificateException
&& (e.getCause().getMessage().startsWith("Pin verification failed")))) {
didReceivePinningError = true;
代码示例来源:origin: datatheorem/TrustKit-Android
test.createSocket(serverHostname, 443).getInputStream();
} catch (SSLHandshakeException e) {
if ((e.getCause() instanceof CertificateException
&& !(e.getCause().getMessage().startsWith("Pin verification failed")))) {
didReceiveHandshakeError = true;
代码示例来源:origin: datatheorem/TrustKit-Android
test.createSocket(serverHostname, 443).getInputStream();
} catch (SSLHandshakeException e) {
if ((e.getCause() instanceof CertificateException
&& !(e.getCause().getMessage().startsWith("Pin verification failed")))) {
didReceiveHandshakeError = true;
代码示例来源:origin: datatheorem/TrustKit-Android
test.createSocket(serverHostname, 443).getInputStream();
} catch (SSLHandshakeException e) {
if ((e.getCause() instanceof CertificateException
&& !(e.getCause().getMessage().startsWith("Pin verification failed")))) {
didReceiveHandshakeError = true;
代码示例来源:origin: datatheorem/TrustKit-Android
test.createSocket(serverHostname, 443).getInputStream();
} catch (SSLHandshakeException e) {
if ((e.getCause() instanceof CertificateException
&& !(e.getCause().getMessage().startsWith("Pin verification failed")))) {
didReceiveHandshakeError = true;
代码示例来源:origin: datatheorem/TrustKit-Android
test.createSocket(serverHostname, 443).getInputStream();
} catch (SSLHandshakeException e) {
if ((e.getCause() instanceof CertificateException
&& (e.getCause().getMessage().startsWith("Pin verification failed")))) {
didReceivePinningError = true;
代码示例来源:origin: org.codehaus.jtstand/jtstand-svnkit
myRepository.getDebugLog().logFine(SVNLogType.NETWORK, ssl);
close();
if (ssl.getCause() instanceof SVNSSLUtil.CertificateNotTrustedException) {
SVNErrorManager.cancel(ssl.getCause().getMessage(), SVNLogType.NETWORK);
代码示例来源:origin: org.jvnet.hudson.svnkit/svnkit
myRepository.getDebugLog().logFine(SVNLogType.NETWORK, ssl);
close();
if (ssl.getCause() instanceof SVNSSLUtil.CertificateNotTrustedException) {
SVNErrorManager.cancel(ssl.getCause().getMessage(), SVNLogType.NETWORK);
代码示例来源:origin: org.tmatesoft.svnkit/svnkit
myRepository.getDebugLog().logFine(SVNLogType.NETWORK, ssl);
close();
if (ssl.getCause() instanceof SVNSSLUtil.CertificateNotTrustedException
|| ssl.getCause() instanceof SVNSSLUtil.CertificateDoesNotConformConstraints) {
SVNErrorManager.cancel(ssl.getCause().getMessage(), SVNLogType.NETWORK);
内容来源于网络,如有侵权,请联系作者删除!