Implementation of CMPv2 client
[aaf/authz.git] / auth / auth-certman / src / main / java / org / onap / aaf / auth / cm / cmpv2client / impl / CmpClientImpl.java
1 /*
2  * Copyright (C) 2019 Ericsson Software Technology AB. All rights reserved.
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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
15  */
16 package org.onap.aaf.auth.cm.cmpv2client.impl;
17
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;
22
23 /**
24  * Implementation of the CmpClient Interface conforming to RFC4210 (Certificate Management Protocol (CMP)) and RFC4211 (
25  * Certificate Request Message Format (CRMF)) standards.
26  */
27 public final class CmpClientImpl implements CmpClient {
28
29     @Override
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 {
33
34         // TODO Auto-generated method stub
35         return null;
36     }
37
38     @Override
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
43         return null;
44     }
45
46     @Override
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
51         return null;
52     }
53 }
54