ClientCertResponse constructor

ClientCertResponse({
  1. required String certificatePath,
  2. String? certificatePassword = "",
  3. @Deprecated('Use keyStoreType instead') String? androidKeyStoreType = "PKCS12",
  4. String? keyStoreType = "PKCS12",
  5. ClientCertResponseAction? action = ClientCertResponseAction.CANCEL,
})

Implementation

ClientCertResponse(
    {required this.certificatePath,
    this.certificatePassword = "",
    @Deprecated('Use keyStoreType instead')
    this.androidKeyStoreType = "PKCS12",
    this.keyStoreType = "PKCS12",
    this.action = ClientCertResponseAction.CANCEL}) {
  if (this.action == ClientCertResponseAction.PROCEED)
    assert(certificatePath.isNotEmpty);
  this.keyStoreType = this.keyStoreType ?? this.androidKeyStoreType;
  if (Util.isAndroid) assert(this.keyStoreType != null);
}