public final class CertificatesDialogParams
extends java.lang.Object
DialogHandler.onSelectCertificate(CertificatesDialogParams)
method.
Constructor and Description |
---|
CertificatesDialogParams(Browser browser, boolean isProxy, HostPortPair hostPortPair, java.util.List<Certificate> certificates) |
Modifier and Type | Method and Description |
---|---|
Browser |
getBrowser()
Returns Browser instance that requests SSL client certificate authorization.
返回请求SSL客户端证书授权的Browser实例。 |
java.util.List<Certificate> |
getCertificates()
Returns a list of client certificates matching the server criteria.
返回与服务器条件匹配的客户端证书列表。 |
HostPortPair |
getHostPortPair()
Returns host and port of SSL server that requested SSL client authentication.
返回请求SSL客户端身份验证的SSL服务器的主机和端口。 |
Certificate |
getSelectedCertificate()
Returns the currently selected certificate for SSL authorization.
返回当前选择的SSL授权证书。 |
boolean |
isProxy()
Returns
如果发出此请求的服务器是请求中使用的HTTPS代理,则返回true。 true if the server that issues this request was the HTTPS proxy used in the request.
|
void |
setSelectedCertificate(Certificate certificate)
Sets the
设置必须用于SSL客户端证书授权的证书。 certificate that must be used for SSL client certificate authorization.
|
public CertificatesDialogParams(Browser browser, boolean isProxy, HostPortPair hostPortPair, java.util.List<Certificate> certificates)
public Browser getBrowser()
public boolean isProxy()
true
if the server that issues this request was the HTTPS proxy used in the request. False, if the server was the origin server.
public HostPortPair getHostPortPair()
public java.util.List<Certificate> getCertificates()
public Certificate getSelectedCertificate()
null
to indicate that certificate for SSL authorization hasn't been selected yet.
public void setSelectedCertificate(Certificate certificate)
certificate
that must be used for SSL client certificate authorization. The
certificate
can be obtained in two ways:
getCertificates()
method.X509Certificate
using the corresponding constructor: Certificate.Certificate(X509Certificate)
.certificate
- a client certificate that must be used for SSL authorization. Can be
null
when SSL authorization must be canceled.
-必须用于SSL授权的客户端证书。可以在必须取消SSL授权时使用。
java.lang.IllegalArgumentException
- when the
certificate
is created manually and does not contain the underlying
X509Certificate
.