2 * Copyright (C) 2019 Ericsson Software Technology AB. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License
16 package org.onap.aaf.auth.cm.cmpv2client.impl;
18 import java.security.cert.Certificate;
19 import java.util.Date;
20 import org.onap.aaf.auth.cm.cert.CSRMeta;
21 import org.onap.aaf.auth.cm.cmpv2client.api.CmpClient;
24 * Implementation of the CmpClient Interface conforming to RFC4210 (Certificate Management Protocol (CMP)) and RFC4211 (
25 * Certificate Request Message Format (CRMF)) standards.
27 public final class CmpClientImpl implements CmpClient {
30 public Certificate createCertRequest(final String caName, final String profile, final CSRMeta csrMeta,
31 final Certificate csr, final Date notBefore, final Date notAfter)
32 throws CAOfflineException, CmpClientException {
34 // TODO Auto-generated method stub
39 public Certificate createCertRequest(final String caName, final String profile, final CSRMeta csrMeta,
40 final Certificate csr)
41 throws CAOfflineException, CmpClientException {
42 // TODO Auto-generated method stub
47 public Certificate revokeCertRequest(final String caName, final Certificate cert, final int reason,
48 final Date invalidityTime)
49 throws CAOfflineException, CmpClientException {
50 // TODO Auto-generated method stub