summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/ClientCertRequest.java
diff options
context:
space:
mode:
authorSelim Gurun <sgurun@google.com>2014-06-13 10:53:55 -0700
committerSelim Gurun <sgurun@google.com>2014-06-13 10:53:55 -0700
commitee89ab4dd5fa92dbbda255cf74537c44f74e1483 (patch)
tree8d1d973af210466912dd3d87ea97a2aaf9db37dd /core/java/android/webkit/ClientCertRequest.java
parentb8cee5175d7cbc4901bd2d56aa6a380b1464a074 (diff)
Address the API review
Bug: 15432556 The api council asks to change the interface to an abstract class and clarify the clearClientCertPreferences api. This change addresses these. Change-Id: I7979788c7c041bacbfef5ea4d94309f91279ef22
Diffstat (limited to 'core/java/android/webkit/ClientCertRequest.java')
-rw-r--r--core/java/android/webkit/ClientCertRequest.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/core/java/android/webkit/ClientCertRequest.java b/core/java/android/webkit/ClientCertRequest.java
index 588b868726c3..4a7f5fdf1f66 100644
--- a/core/java/android/webkit/ClientCertRequest.java
+++ b/core/java/android/webkit/ClientCertRequest.java
@@ -27,7 +27,7 @@ import java.security.cert.X509Certificate;
* such as the host name and the port number requesting the cert, the acceptable
* key types and the principals.
*
- * The user should call one of the interface methods to indicate how to deal
+ * 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.
*
@@ -37,42 +37,45 @@ import java.security.cert.X509Certificate;
* {@link WebView#clearClientCertPreferences}.
*
*/
-public interface ClientCertRequest {
+public abstract class ClientCertRequest {
+
+ public ClientCertRequest() { }
+
/**
* Returns the acceptable types of asymmetric keys (can be null).
*/
- public String[] getKeyTypes();
+ public abstract String[] getKeyTypes();
/**
* Returns the acceptable certificate issuers for the certificate
* matching the private key (can be null).
*/
- public Principal[] getPrincipals();
+ public abstract Principal[] getPrincipals();
/**
* Returns the host name of the server requesting the certificate.
*/
- public String getHost();
+ public abstract String getHost();
/**
* Returns the port number of the server requesting the certificate.
*/
- public int getPort();
+ public abstract int getPort();
/**
* Proceed with the specified private key and client certificate chain.
* Remember the user's positive choice and use it for future requests.
*/
- public void proceed(PrivateKey privateKey, X509Certificate[] chain);
+ public abstract void proceed(PrivateKey privateKey, X509Certificate[] chain);
/**
* Ignore the request for now. Do not remember user's choice.
*/
- public void ignore();
+ public abstract void ignore();
/**
* Cancel this request. Remember the user's choice and use it for
* future requests.
*/
- public void cancel();
+ public abstract void cancel();
}