diff options
author | Pawel Baniewski <pawel.baniewski@nokia.com> | 2021-07-07 07:34:05 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-07-07 07:34:05 +0000 |
commit | d1c1e239d5ce46880563d7cccc7d57da6315482a (patch) | |
tree | 2f80603a4044421f3005f5792972a6a7964010a9 /certService/src/main/java/org/onap/oom/certservice/cmpv2client/api/CmpClient.java | |
parent | 62d037f9368ae9300ff24292e142df0811479ad1 (diff) | |
parent | 52c8476b49aab2a54c875d14ddab7ac26b010a32 (diff) |
Merge "[OOM-CERT-SERVICE] Add Certification Request functionality"
Diffstat (limited to 'certService/src/main/java/org/onap/oom/certservice/cmpv2client/api/CmpClient.java')
-rw-r--r-- | certService/src/main/java/org/onap/oom/certservice/cmpv2client/api/CmpClient.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/certService/src/main/java/org/onap/oom/certservice/cmpv2client/api/CmpClient.java b/certService/src/main/java/org/onap/oom/certservice/cmpv2client/api/CmpClient.java index 5ded3056..88c73c04 100644 --- a/certService/src/main/java/org/onap/oom/certservice/cmpv2client/api/CmpClient.java +++ b/certService/src/main/java/org/onap/oom/certservice/cmpv2client/api/CmpClient.java @@ -88,4 +88,17 @@ public interface CmpClient { */ Cmpv2CertificationModel updateCertificate(CsrModel csrModel, Cmpv2Server cmpv2Server, CertificateUpdateModel certificateUpdateModel) throws CmpClientException; + + /** + * Requests for an additional External Root CA Certificate to be created for the passed keyPair wrapped + * in a CSRMeta with common details. Basic Authentication using IAK/RV, Verification of the signature + * (proof-of-possession) on the request is performed and an Exception thrown if verification fails + * or issue encountered in fetching certificate from CA. + * + * @param csrModel Certificate Signing Request Model. Must not be {@code null}. + * @param cmpv2Server CMPv2 server. Must not be {@code null}. + * @return model for certification containing certificate chain and trusted certificates + * @throws CmpClientException if client error occurs. + */ + Cmpv2CertificationModel certificationRequest(CsrModel csrModel, Cmpv2Server cmpv2Server) throws CmpClientException; } |