Merge "Account for null client certificate"
This commit is contained in:
committed by
Android (Google) Code Review
commit
3f5d1ec256
@@ -752,8 +752,11 @@ public class WifiEnterpriseConfig implements Parcelable {
|
||||
* @throws IllegalArgumentException for an invalid key or certificate.
|
||||
*/
|
||||
public void setClientKeyEntry(PrivateKey privateKey, X509Certificate clientCertificate) {
|
||||
setClientKeyEntryWithCertificateChain(privateKey,
|
||||
new X509Certificate[] {clientCertificate});
|
||||
X509Certificate[] clientCertificates = null;
|
||||
if (clientCertificate != null) {
|
||||
clientCertificates = new X509Certificate[] {clientCertificate};
|
||||
}
|
||||
setClientKeyEntryWithCertificateChain(privateKey, clientCertificates);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user