Class CredentialValidator

java.lang.Object
org.citrusframework.kubernetes.config.CredentialValidator

public class CredentialValidator extends Object
  • Constructor Details

    • CredentialValidator

      public CredentialValidator()
  • Method Details

    • isValid

      public static boolean isValid(String username, String password, String oauthToken)
      Validates the given credentials based on the following rules. Returns true if and only if none of the following conditions are met:
      • username is set AND oauthToken is set
      • password is set AND oauthToken is set
      • username is not set AND password is set
      All other combinations are valid.
      Parameters:
      username - The username.
      password - The password.
      oauthToken - The OAuth token.
      Returns:
      true if the combination is valid, false otherwise.