javax.net.ssl.SSLHandshakeException.setStackTrace()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(9.1k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中javax.net.ssl.SSLHandshakeException.setStackTrace()方法的一些代码示例,展示了SSLHandshakeException.setStackTrace()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SSLHandshakeException.setStackTrace()方法的具体详情如下:
包路径:javax.net.ssl.SSLHandshakeException
类名称:SSLHandshakeException
方法名:setStackTrace

SSLHandshakeException.setStackTrace介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

@Override
public final SSLHandshakeException invalidHandshakeRecord() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), invalidHandshakeRecord$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String multiRecordSSLHandshake = "ELY04010: Initial SSL/TLS handshake spans multiple records";

代码示例来源:origin: wildfly/wildfly

@Override
public final SSLHandshakeException multiRecordSSLHandshake() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), multiRecordSSLHandshake$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String expectedClientHello = "UT000143: Expected \"client hello\" record";

代码示例来源:origin: wildfly/wildfly

@Override
public final SSLHandshakeException noContextForSslConnection() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), noContextForSslConnection$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String sslClosed = "ELY04007: SSL channel is closed";

代码示例来源:origin: wildfly/wildfly

@Override
public final SSLHandshakeException invalidHandshakeRecord() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), invalidHandshakeRecord$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String multiRecordSSLHandshake = "UT000142: Initial SSL/TLS handshake spans multiple records";

代码示例来源:origin: wildfly/wildfly

@Override
public final SSLHandshakeException expectedServerHello() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), expectedServerHello$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String tooManyRedirects = "UT000145: Too many redirects";

代码示例来源:origin: wildfly/wildfly

@Override
public final SSLHandshakeException notHandshakeRecord() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), notHandshakeRecord$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String invalidHandshakeRecord = "ELY04009: Initial SSL/TLS handshake record is invalid";

代码示例来源:origin: wildfly/wildfly

@Override
public final SSLHandshakeException multiRecordSSLHandshake() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), multiRecordSSLHandshake$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String expectedClientHello = "ELY04011: Expected \"client hello\" record";

代码示例来源:origin: wildfly/wildfly

@Override
public final SSLHandshakeException unsupportedSslRecord() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), unsupportedSslRecord$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String invalidTlsExt = "ELY04013: Invalid TLS extension data";

代码示例来源:origin: wildfly/wildfly

@Override
public final SSLHandshakeException expectedClientHello() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), expectedClientHello$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String unsupportedSslRecord = "ELY04012: Unsupported SSL/TLS record";

代码示例来源:origin: wildfly/wildfly

@Override
public final SSLHandshakeException notHandshakeRecord() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), notHandshakeRecord$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String invalidHandshakeRecord = "UT000141: Initial SSL/TLS handshake record is invalid";

代码示例来源:origin: wildfly/wildfly

@Override
public final SSLHandshakeException expectedClientHello() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), expectedClientHello$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String expectedServerHello = "UT000144: Expected server hello";

代码示例来源:origin: io.undertow/undertow-core

@Override
public final SSLHandshakeException expectedClientHello() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), expectedClientHello$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String expectedServerHello = "UT000144: Expected server hello";

代码示例来源:origin: io.undertow/undertow-core

@Override
public final SSLHandshakeException invalidHandshakeRecord() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), invalidHandshakeRecord$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String multiRecordSSLHandshake = "UT000142: Initial SSL/TLS handshake spans multiple records";

代码示例来源:origin: io.undertow/undertow-core

@Override
public final SSLHandshakeException notHandshakeRecord() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), notHandshakeRecord$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String invalidHandshakeRecord = "UT000141: Initial SSL/TLS handshake record is invalid";

代码示例来源:origin: io.undertow/undertow-core

@Override
public final SSLHandshakeException multiRecordSSLHandshake() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), multiRecordSSLHandshake$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String expectedClientHello = "UT000143: Expected \"client hello\" record";

代码示例来源:origin: io.undertow/undertow-core

@Override
public final SSLHandshakeException expectedServerHello() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), expectedServerHello$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String tooManyRedirects = "UT000145: Too many redirects";

代码示例来源:origin: org.wildfly.security/wildfly-elytron

@Override
public final SSLHandshakeException noContextForSslConnection() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), noContextForSslConnection$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String sslClosed = "ELY04007: SSL channel is closed";

代码示例来源:origin: org.wildfly.security/wildfly-elytron

@Override
public final SSLHandshakeException notHandshakeRecord() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), notHandshakeRecord$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String invalidHandshakeRecord = "ELY04009: Initial SSL/TLS handshake record is invalid";

代码示例来源:origin: org.wildfly.security/wildfly-elytron

@Override
public final SSLHandshakeException multiRecordSSLHandshake() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), multiRecordSSLHandshake$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String expectedClientHello = "ELY04011: Expected \"client hello\" record";

代码示例来源:origin: org.wildfly.security/wildfly-elytron

@Override
public final SSLHandshakeException expectedClientHello() {
  final SSLHandshakeException result = new SSLHandshakeException(String.format(getLoggingLocale(), expectedClientHello$str()));
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String unsupportedSslRecord = "ELY04012: Unsupported SSL/TLS record";

相关文章