Most visited

Recently visited

Added in API level 24

ExtendedSSLSession

public abstract class ExtendedSSLSession
extends Object implements SSLSession

java.lang.Object
    javax.net.ssl.ExtendedSSLSession


扩展 SSLSession接口以支持其他会话属性。

摘要(Summary)

Public constructors

ExtendedSSLSession()

公共方法(Public methods)

abstract String[] getLocalSupportedSignatureAlgorithms()

获得本地方愿意使用的一系列支持的签名算法。

abstract String[] getPeerSupportedSignatureAlgorithms()

获得对等体能够使用的一系列支持的签名算法。

List<SNIServerName> getRequestedServerNames()

获得 List包含所有 SNIServerName S上的请求的服务器名称指示(SNI)扩展的。

继承方法(Inherited methods)

From class java.lang.Object
From interface javax.net.ssl.SSLSession

Public constructors

ExtendedSSLSession

Added in API level 24
ExtendedSSLSession ()

公共方法(Public methods)

getLocalSupportedSignatureAlgorithms

Added in API level 24
String[] getLocalSupportedSignatureAlgorithms ()

获得本地方愿意使用的一系列支持的签名算法。

注意:此方法用于向对等方指示哪些签名算法可用于TLS 1.2中的数字签名。 对于1.2之前的TLS版本没有意义。

签名算法名称必须是标准Java安全名称(例如“SHA1withRSA”,“SHA256withECDSA”等)。 有关标准算法名称的信息,请参阅Java Cryptography Architecture API Specification & Reference中的附录A.

注:本地支持的签名算法应该符合由指定的算法约束 getAlgorithmConstraints()方法 SSLParameters

返回(Returns)
String[] An array of supported signature algorithms, in descending order of preference. The return value is an empty array if no signature algorithm is supported.

也可以看看:

getPeerSupportedSignatureAlgorithms

Added in API level 24
String[] getPeerSupportedSignatureAlgorithms ()

获得对等体能够使用的一系列支持的签名算法。

注意:此方法用于向本地方指示TLS 1.2中的哪些签名算法可用于数字签名。 对于1.2之前的TLS版本没有意义。

签名算法名称必须是标准Java安全名称(例如“SHA1withRSA”,“SHA256withECDSA”等)。 有关标准算法名称的信息,请参阅Java Cryptography Architecture API Specification & Reference中的附录A.

返回(Returns)
String[] An array of supported signature algorithms, in descending order of preference. The return value is an empty array if the peer has not sent the supported signature algorithms.

也可以看看:

getRequestedServerNames

Added in API level 24
List<SNIServerName> getRequestedServerNames ()

获得 List含所有 SNIServerName S上的请求的服务器名称指示(SNI)扩展的。

在服务器模式下,除非返回 List为空,否则服务器应使用请求的服务器名称来指导其选择适当的身份验证证书和/或安全策略的其他方面。

在客户端模式下,除非返回 List为空,否则客户端应使用所请求的服务器名称来指导其对端身份和/或安全策略其他方面的端点标识。

返回(Returns)
List<SNIServerName> a non-null immutable list of SNIServerNames of the requested server name indications. The returned list may be empty if no server name indications were requested.
抛出异常(Throws)
UnsupportedOperationException if the underlying provider does not implement the operation

也可以看看:

Hooray!