2 * Copyright (c) 2015 Inocybe Technologies. and others. All rights reserved.
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
9 package org.opendaylight.aaa.cert.api;
11 import java.security.KeyStore;
17 * IAaaCertProvider define the basic operation for certificates management
19 public interface IAaaCertProvider extends java.lang.AutoCloseable {
21 boolean addCertificateODLKeyStore(String storePasswd, String alias, String certificate);
23 boolean addCertificateTrustStore(String storePasswd, String alias, String certificate);
25 String createODLKeyStore(String keyStore, String storePasswd, String alias, String dName, int validity);
27 String createTrustKeyStore(String keyStore, String storePasswd, String alias);
29 String genODLKeyStorCertificateReq(String storePasswd, String alias);
31 String getCertificateTrustStore(String storePasswd, String aliase);
33 String getODLKeyStorCertificate(String storePasswd, String alias);
35 KeyStore getODLKeyStore();
37 KeyStore getTrustKeyStore();