-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
secrets provider: custom non-bundled connectors support, some javadoc
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...a/prism-api/src/main/java/com/evolveum/midpoint/prism/crypto/SecretsProviderConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (C) 2010-2024 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
package com.evolveum.midpoint.prism.crypto; | ||
|
||
import java.util.List; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* Interface for component that can use initialized secret providers to resolve secrets (e.g. instead of decrypting them). | ||
*/ | ||
public interface SecretsProviderConsumer { | ||
|
||
/** | ||
* @param provider Initialized provider to be added to the list of usable providers. | ||
*/ | ||
void addSecretsProvider(@NotNull SecretsProvider provider); | ||
|
||
/** | ||
* @param provider Initialized provider to be removed from the list of usable providers. | ||
*/ | ||
void removeSecretsProvider(@NotNull SecretsProvider provider); | ||
|
||
/** | ||
* @return List of usable secret providers. | ||
*/ | ||
@NotNull List<SecretsProvider> getSecretsProviders(); | ||
} |