本文整理汇总了Java中javax.net.ssl.SSLKeyException类的典型用法代码示例。如果您正苦于以下问题:Java SSLKeyException类的具体用法?Java SSLKeyException怎么用?Java SSLKeyException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SSLKeyException类属于javax.net.ssl包,在下文中一共展示了SSLKeyException类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: test_Constructor02
import javax.net.ssl.SSLKeyException; //导入依赖的package包/类
/**
* Test for <code>SSLPeerUnverifiedException(String)</code> constructor Assertion:
* constructs SSLPeerUnverifiedException with detail message msg. Parameter
* <code>msg</code> is null.
*/
@TestTargetNew(
level = TestLevel.PARTIAL_COMPLETE,
notes = "",
method = "SSLKeyException",
args = {java.lang.String.class}
)
public void test_Constructor02() {
String msg = null;
SSLKeyException skE = new SSLKeyException(msg);
assertNull("getMessage() must return null.", skE.getMessage());
assertNull("getCause() must return null", skE.getCause());
}
开发者ID:keplersj,项目名称:In-the-Box-Fork,代码行数:18,代码来源:SSLKeyExceptionTest.java
示例2: testSSLKeyException02
import javax.net.ssl.SSLKeyException; //导入依赖的package包/类
/**
* Test for <code>SSLKeyException(String)</code> constructor Assertion:
* constructs SSLKeyException when <code>msg</code> is null
*/
public void testSSLKeyException02() {
String msg = null;
SSLKeyException tE = new SSLKeyException(msg);
assertNull("getMessage() must return null.", tE.getMessage());
assertNull("getCause() must return null", tE.getCause());
}
开发者ID:shannah,项目名称:cn1,代码行数:11,代码来源:SSLKeyExceptionTest.java
示例3: getData
import javax.net.ssl.SSLKeyException; //导入依赖的package包/类
@Override
protected Object[] getData() {
return new Object[] { new SSLKeyException(null),
new SSLKeyException(msgs[0]), new SSLKeyException(msgs[1]) };
}
开发者ID:shannah,项目名称:cn1,代码行数:6,代码来源:SSLKeyExceptionTest.java
示例4: getData
import javax.net.ssl.SSLKeyException; //导入依赖的package包/类
protected Object[] getData() {
return new Object[] { new SSLKeyException(null),
new SSLKeyException(msgs[0]), new SSLKeyException(msgs[1]) };
}
开发者ID:freeVM,项目名称:freeVM,代码行数:5,代码来源:SSLKeyExceptionTest.java
注:本文中的javax.net.ssl.SSLKeyException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论