Extract WWW certificate provider

Summary: Extract WWW certificate provider from the iOS certificate provider. Hide its implementation from OSS since it is not relevant for OSS folks.

Reviewed By: mweststrate

Differential Revision: D33895378

fbshipit-source-id: 376afda3b5fa3857c0eb280b92555314eb1a0d1f
This commit is contained in:
Andrey Goncharov
2022-02-02 03:05:34 -08:00
committed by Facebook GitHub Bot
parent 29f6d0e711
commit fd13399cb9
8 changed files with 52 additions and 129 deletions

View File

@@ -0,0 +1,29 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import {KeytarManager} from '../utils/keytar';
import CertificateProvider from '../utils/CertificateProvider';
export default class WWWCertificateProvider extends CertificateProvider {
constructor(private keytarManager: KeytarManager) {
super();
}
async processCertificateSigningRequest(): Promise<{deviceId: string}> {
throw new Error('WWWCertificateProvider is not implemented');
}
async getTargetDeviceId(): Promise<string> {
throw new Error('WWWCertificateProvider is not implemented');
}
protected async deployOrStageFileForDevice(): Promise<void> {
throw new Error('WWWCertificateProvider is not implemented');
}
}