remove duplicate adapter methods (#19038)

This commit is contained in:
Angel Garbarino 2023-02-07 11:27:44 -07:00 committed by GitHub
parent 9130a786bb
commit 03ae8d54a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 26 deletions

View File

@ -67,29 +67,4 @@ export default class PkiRoleAdapter extends ApplicationAdapter {
const { id, record } = snapshot;
return this.ajax(this._urlForRole(record.backend, id), 'DELETE');
}
generateCertificate(backend, roleName, data) {
const url = `${this.buildURL()}/${encodePath(backend)}/issue/${roleName}`;
const options = {
data,
};
return this.ajax(url, 'POST', options).then((resp) => {
return resp.data;
});
}
signCertificate(backend, roleName, data) {
const url = `${this.buildURL()}/${encodePath(backend)}/sign/${roleName}`;
const options = {
data,
};
return this.ajax(url, 'POST', options);
}
revokeCertificate(backend, data) {
const url = `${this.buildURL()}/${encodePath(backend)}/revoke`;
return this.ajax(url, 'POST', {
data,
});
}
}

View File

@ -5,5 +5,4 @@ export default interface PkiRoleAdapter extends AdapterRegistry {
namespace: string;
_urlForRole(backend: string, id: string): string;
_optionsForQuery(id: string): { data: unknown };
generateCertificate(backend: string, roleName: string, data: unknown): unknown;
}