Decrypt key credentials in keystore-legacy
[netconf.git] / plugins / netconf-client-mdsal / src / main / java / org / opendaylight / netconf / client / mdsal / api / CredentialProvider.java
1 /*
2  * Copyright (c) 2023 PANTHEON.tech, s.r.o. 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 package org.opendaylight.netconf.client.mdsal.api;
9
10 import java.security.KeyPair;
11 import org.eclipse.jdt.annotation.Nullable;
12
13 public interface CredentialProvider {
14     /**
15      * Get the a {@link KeyPair} for a particular id.
16      *
17      * @param id Credential id
18      * @return A {@link KeyPair} object, {@code null} if not found
19      * @throws NullPointerException if {@code id} is {@code null}
20      */
21     @Nullable KeyPair credentialForId(String id);
22 }