|
| 1 | + |
| 2 | +// Copyright 2025 Keyfactor |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. |
| 4 | +// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 |
| 5 | +// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, |
| 6 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions |
| 7 | +// and limitations under the License. |
| 8 | + |
| 9 | +namespace Keyfactor.Extensions.CAPlugin.NexusCertManager |
| 10 | +{ |
| 11 | + public static class Constants |
| 12 | + { |
| 13 | + //names |
| 14 | + public const string HOST = "Host"; |
| 15 | + public const string AUTHCERTPATH = "AuthCertificatePath"; |
| 16 | + public const string ENABLED = "Enabled"; |
| 17 | + public const string AUTHCERTPASSWORD = "AuthCertPassword"; |
| 18 | + |
| 19 | + |
| 20 | + //values |
| 21 | + public const string APIPATH = "pgwy/api"; |
| 22 | + public const string PRODUCTID = "NexusCM"; |
| 23 | + public const string PKCS7MIMETYPE = "application/pkcs7-mime"; |
| 24 | + public const string PEMCHAIN = "application/pem-certificate-chain"; |
| 25 | + |
| 26 | + public const string MEDIATYPE_PKCS10 = "pkcs10"; |
| 27 | + public const string MEDIATYPE_PKCS12 = "pkcs12"; |
| 28 | + public const string MEDIATYPE_SMARTCARD = "smartcard"; |
| 29 | + public const string MEDIATYPE_ATTRIBUTECERT = "attributecertificate"; |
| 30 | + public const string MEDIATYPE_DATA = "data"; |
| 31 | + } |
| 32 | + |
| 33 | + public static class ApiEndpoints |
| 34 | + { |
| 35 | + public const string LISTCERTS = "/certificates"; //get |
| 36 | + public static string DOWNLOADCERT(string certId) => $"/certificates/{certId}/download"; //get |
| 37 | + public static string CERTDETAILS(string certId) => $"/certificates/{certId}/details"; //get |
| 38 | + |
| 39 | + public const string REVOKE = "/certificates/revoke"; //post |
| 40 | + |
| 41 | + public const string ENROLL = "/certificates/pkcs10"; //post |
| 42 | + |
| 43 | + public const string LISTPROCEDURES = "/procedures"; |
| 44 | + } |
| 45 | +} |
0 commit comments