Class AuthAliasPrefixKubernetesSecret

java.lang.Object
org.frankframework.credentialprovider.Secret
org.frankframework.credentialprovider.AuthAliasPrefixKubernetesSecret
All Implemented Interfaces:
ISecret

public class AuthAliasPrefixKubernetesSecret extends Secret
An ISecret implementation that reads credential fields from a Kubernetes secret using a dot-separated key prefix derived from the auth alias name.

Keys in the Kubernetes secret are expected to follow the convention <alias>.<fieldname>, for example myalias.username or myalias.password. When getField(String) is called, the alias prefix is prepended to the field name to form the full key, and the corresponding Base64-encoded value is decoded and returned.

Returns null if the field name is blank or no matching key exists in the secret.

  • Method Details

    • getField

      public @Nullable String getField(@Nullable String fieldname)
      Description copied from interface: ISecret
      Returns NULL when it cannot find the field
    • toString

      public String toString()
      Overrides:
      toString in class Secret