public abstract class X509ExtendedKeyManager
extends Object
implements X509KeyManager
java.lang.Object | |
↳ | javax.net.ssl.X509ExtendedKeyManager |
抽象类,用于扩展X509KeyManager接口。
应该重写此类中的方法以提供实际的实现。
Protected constructors |
|
---|---|
X509ExtendedKeyManager() 仅由子类使用构造函数。 |
Public methods |
|
---|---|
String |
chooseEngineClientAlias(String[] keyType, Principal[] issuers, SSLEngine engine) 给定公钥类型和对等方认可的证书颁发者权限列表(如果有的话),选择一个别名来认证 |
String |
chooseEngineServerAlias(String keyType, Principal[] issuers, SSLEngine engine) 给定公钥类型和对等方认可的证书颁发者权限列表(如果有的话),选择一个别名来认证 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
|
From interface javax.net.ssl.X509KeyManager
|
String chooseEngineClientAlias (String[] keyType, Principal[] issuers, SSLEngine engine)
在给定公钥类型和由对等方识别的证书颁发者权限列表(如果有)的情况下,选择一个别名来验证 SSLEngine
连接的客户端。
默认实现返回null。
Parameters | |
---|---|
keyType |
String : the key algorithm type name(s), ordered with the most-preferred key type first. |
issuers |
Principal : the list of acceptable CA issuer subject names or null if it does not matter which issuers are used. |
engine |
SSLEngine : the SSLEngine to be used for this connection. This parameter can be null, which indicates that implementations of this interface are free to select an alias applicable to any engine. |
Returns | |
---|---|
String |
the alias name for the desired key, or null if there are no matches. |
String chooseEngineServerAlias (String keyType, Principal[] issuers, SSLEngine engine)
给定公钥类型和对等方认可的证书颁发者权限列表(如果有的话),选择一个别名来认证 SSLEngine
连接的服务器端。
默认实现返回null。
Parameters | |
---|---|
keyType |
String : the key algorithm type name. |
issuers |
Principal : the list of acceptable CA issuer subject names or null if it does not matter which issuers are used. |
engine |
SSLEngine : the SSLEngine to be used for this connection. This parameter can be null, which indicates that implementations of this interface are free to select an alias applicable to any engine. |
Returns | |
---|---|
String |
the alias name for the desired key, or null if there are no matches. |