public class TLSArtifactPaths
extends java.lang.Object
TLSArtifact objects within a specified per-task context.| Modifier and Type | Class and Description |
|---|---|
static class |
TLSArtifactPaths.Entry
Utility class for pairing paths related to a secret.
|
| Constructor and Description |
|---|
TLSArtifactPaths(java.lang.String namespace,
java.lang.String taskInstanceName,
java.lang.String sansHash) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<java.lang.String> |
getAllNames(java.lang.String encryptionSpecName)
Return a list of namespaced secret names (without namespace) for all known
TLSArtifacts. |
static java.util.Collection<java.lang.String> |
getKnownTLSArtifacts(java.util.Collection<java.lang.String> secretStorePaths)
Filters the provided list of secret paths to just the ones which have a matching
TLSArtifact
implementation. |
java.util.List<TLSArtifactPaths.Entry> |
getPathsForType(TransportEncryptionSpec.Type type,
java.lang.String encryptionSpecName)
Returns a mapping of secret store path to mount path for all
TLSArtifacts with the specified
TransportEncryptionSpec.Type. |
java.lang.String |
getSecretStorePath(TLSArtifact tlsArtifact,
java.lang.String encryptionSpecName)
Returns the appropriate namespaced secret store path for the provided
TLSArtifact. |
java.lang.String |
getTaskInstanceName() |
java.lang.String |
getTaskSecretsNamespace() |
public TLSArtifactPaths(java.lang.String namespace,
java.lang.String taskInstanceName,
java.lang.String sansHash)
public java.lang.String getTaskSecretsNamespace()
public java.lang.String getTaskInstanceName()
public java.util.Collection<java.lang.String> getAllNames(java.lang.String encryptionSpecName)
TLSArtifacts.public java.util.List<TLSArtifactPaths.Entry> getPathsForType(TransportEncryptionSpec.Type type, java.lang.String encryptionSpecName)
TLSArtifacts with the specified
TransportEncryptionSpec.Type.public java.lang.String getSecretStorePath(TLSArtifact tlsArtifact, java.lang.String encryptionSpecName)
TLSArtifact.public static java.util.Collection<java.lang.String> getKnownTLSArtifacts(java.util.Collection<java.lang.String> secretStorePaths)
TLSArtifact
implementation.