
public final class SecretContainerStore extends Object
SecretContainer object from FileSystem.| Modifier and Type | Method and Description |
|---|---|
static SecretContainer |
getSecretContainer(File secretContainerFile,
boolean autoCreateSecretKey,
Algorithm... allowedAlgorithm)
Read the
SecretContainer object from the given Secret File. |
public static SecretContainer getSecretContainer(File secretContainerFile, boolean autoCreateSecretKey, Algorithm... allowedAlgorithm)
SecretContainer object from the given Secret File. Can also auto-create the secret File if it doesn't exist.secretContainerFile - The location where the secret file should be placed.autoCreateSecretKey - flag to auto create the secret File if it doesn't already exists. If false, and the secret File is missing an Exception will be thrown.allowedAlgorithm - A list of allowed Algorithms in case the secret File must be generated. The first by the Java-VM supported Algorithm will be used
to create the secret FileSecretContainerCopyright © 2016–2019 Brabenetz Harald, Austria. All rights reserved.