adding command-line and certificate functionalities
[aaa.git] / aaa-cert / src / main / java / org / opendaylight / aaa / cert / api / IAaaCertProvider.java
1 /*
2  * Copyright (c) 2015 Inocybe Technologies. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.aaa.cert.api;
10
11 import java.security.KeyStore;
12
13 /**
14  *
15  * @author mserngawy
16  *
17  * IAaaCertProvider define the basic operation for certificates management
18  */
19 public interface IAaaCertProvider extends java.lang.AutoCloseable {
20
21     boolean addCertificateODLKeyStore(String storePasswd, String alias, String certificate);
22
23     boolean addCertificateTrustStore(String storePasswd, String alias, String certificate);
24
25     String createODLKeyStore(String keyStore, String storePasswd, String alias, String dName, int validity);
26
27     String createTrustKeyStore(String keyStore, String storePasswd, String alias);
28
29     String genODLKeyStorCertificateReq(String storePasswd, String alias);
30
31     String getCertificateTrustStore(String storePasswd, String aliase);
32
33     String getODLKeyStorCertificate(String storePasswd, String alias);
34
35     KeyStore getODLKeyStore();
36
37     KeyStore getTrustKeyStore();
38 }