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.
|
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.
|
Certificate |
getSelectedCertificate()
Returns the currently selected certificate for SSL authorization.
|
boolean |
isProxy()
Returns
true if the server that issues this request was the HTTPS proxy used in
the request. |
void |
setSelectedCertificate(Certificate certificate)
Sets the
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.java.lang.IllegalArgumentException
- when the certificate
is created manually and does
not contain the underlying X509Certificate
.