public interface ClientCertRequest
XWalkResourceClient.onReceivedClientCertRequest(org.xwalk.core.XWalkView, org.xwalk.core.ClientCertRequest).
The request includes the parameters to choose the client certificate, such as the host name
and the port number requesting the cert.
The user should call one of the class methods to indicate how to deal with the client
certificate request. All methods should be called on UI thread.| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel this request.
|
java.lang.String |
getHost()
Returns the host name of the server requesting the certificate.
|
java.lang.String[] |
getKeyTypes()
Gets the acceptable types of asymmetric keys (can be null).
|
int |
getPort()
Returns the port number of the server requesting the certificate.
|
java.security.Principal[] |
getPrincipals()
Gets the acceptable certificate issuers for the certificate matching the
private key (can be null).
|
void |
ignore()
Ignore the request for now.
|
void |
proceed(java.security.PrivateKey privateKey,
java.util.List<java.security.cert.X509Certificate> chain)
Proceed with the specified private key and client certificate chain.
|
void cancel()
void proceed(java.security.PrivateKey privateKey,
java.util.List<java.security.cert.X509Certificate> chain)
privateKey - the private Keychain - the certificate chainvoid ignore()
java.lang.String getHost()
int getPort()
java.lang.String[] getKeyTypes()
java.security.Principal[] getPrincipals()