public abstract class ExtendedSSLSession extends Object implements SSLSession
SSLSession
接口支持额外的会话属性。
Constructor and Description |
---|
ExtendedSSLSession() |
Modifier and Type | Method and Description |
---|---|
abstract String[] |
getLocalSupportedSignatureAlgorithms()
获得一个支持本地方愿意使用的支持的签名算法的数组。
|
abstract String[] |
getPeerSupportedSignatureAlgorithms()
获得一个支持的签名算法,该算法的对等体是能够使用的。
|
List<SNIServerName> |
getRequestedServerNames()
获得
List 包含所有
SNIServerName s所请求的服务器名称指示(SNI)扩展。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApplicationBufferSize, getCipherSuite, getCreationTime, getId, getLastAccessedTime, getLocalCertificates, getLocalPrincipal, getPacketBufferSize, getPeerCertificateChain, getPeerCertificates, getPeerHost, getPeerPort, getPeerPrincipal, getProtocol, getSessionContext, getValue, getValueNames, invalidate, isValid, putValue, removeValue
public abstract String[] getLocalSupportedSignatureAlgorithms()
注:此方法用于表示对同行的签名算法可用于TLS 1.2数字签名。TLS 1.2版本之前是没有意义的。
签名算法的名称必须是标准的java安全名称(如“sha1withrsa”、“sha256withecdsa”,等等)。见附录A中的 Java Cryptography Architecture API Specification & Reference 有关标准算法名称信息。
注:当地的支持签名算法应符合的SSLParameters
getAlgorithmConstraints()
方法指定的算法约束。
SSLParameters.getAlgorithmConstraints()
public abstract String[] getPeerSupportedSignatureAlgorithms()
注:此方法用于显示本地方签名算法可用于TLS 1.2数字签名。TLS 1.2版本之前是没有意义的。
签名算法的名称必须是标准的java安全名称(如“sha1withrsa”、“sha256withecdsa”,等等)。见附录A中的 Java Cryptography Architecture API Specification & Reference 有关标准算法名称信息。
X509KeyManager
,
X509ExtendedKeyManager
public List<SNIServerName> getRequestedServerNames()
List
包含所有
SNIServerName
s所请求的服务器名称指示(SNI)扩展。
在服务器模式,除非返回List
是空的,服务器应该使用请求的服务器名称来指导其选择合适的认证证书,和/或其他方面的安全策略。
在客户端模式,除非返回List
是空的,客户应使用请求的服务器名称来引导其同伴的身份识别终端,和/或其他方面的安全策略。
SNIServerName
s。返回的列表可能是空的,如果没有请求服务器名称的指示。
UnsupportedOperationException
-如果基础提供程序不执行操作
SNIServerName
,
X509ExtendedTrustManager
,
X509ExtendedKeyManager
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.