def METHOD_NAME(text: str) -> tuple[bool, str, str | None]:
    """Masks any secrets. This is the method that should be used by outside classes.
    Args:
        text: A string which may contain a secret.
    Returns:
        The masked string.
    """
    if text is None:
        return (False, None, None)
    masked = False
    err_str = None
    try:
        masked_text = SecretDetector.mask_connection_token(
            SecretDetector.mask_password(
                SecretDetector.mask_private_key_data(
                    SecretDetector.mask_private_key(
                        SecretDetector.mask_aws_tokens(
                            SecretDetector.mask_sas_tokens(
                                SecretDetector.mask_aws_keys(text)
                            )
                        )
                    )
                )
            )
        )
        if masked_text != text:
            masked = True
    except Exception as ex:
        # We'll assume that the exception was raised during masking
        # to be safe consider that the log has sensitive information
        # and do not raise an exception.
        masked = True
        masked_text = str(ex)
        err_str = str(ex)
    return masked, masked_text, err_str